Giter Site home page Giter Site logo

'npm run build' fails about pigallery2 HOT 4 CLOSED

bpatrik avatar bpatrik commented on May 18, 2024
'npm run build' fails

from pigallery2.

Comments (4)

josefzach avatar josefzach commented on May 18, 2024 1

Thanks, actually it was npm start for me.
Watching out for updates :)
Cheers

from pigallery2.

bpatrik avatar bpatrik commented on May 18, 2024

Hi Rafael,

I'm happy to hear that interested in the project!

The project is currently under heavy development.
This error is already fixed with the latest commits, but not part of any 'release' yet.
I'll set up a proper publishing tool chain soon for the project and with those releases, users won't have to install all dev dependencies (like phantomjs), just the minimal required libraries.

I'm also planning to have the first release candidate in the next few weeks.

In the mean time, if you would like to try the PiGallery2, just download the source from the repo, then
npm install
npm run build

btw.: You got this error because, you try to compile the project with the latest typescript. Using [email protected] can also solve this problem.

Best,
Patrik

from pigallery2.

josefzach avatar josefzach commented on May 18, 2024

Hi Patrik, thanks for the quick reply.
I have downloaded the updated version. npm run build --verbose now shows this error:

npm info it worked if it ends with ok
npm verb cli [ '/usr/local/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'run',
npm verb cli 'build',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb config Skipping project config: /root/.npmrc. (matches userconfig)
npm verb stack Error: missing script: build
npm verb stack at run (/usr/local/lib/node_modules/npm/lib/run-script.js:151:19)
npm verb stack at /usr/local/lib/node_modules/npm/lib/run-script.js:61:5
npm verb stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:356:5
npm verb stack at handleExists (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:329:20)
npm verb stack at FSReqWrap.cb [as oncomplete] (fs.js:311:19)
npm verb cwd /root
npm verb Linux 4.9.28-v7+
npm verb argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" "--verbose"
npm verb node v8.1.3
npm verb npm v5.0.3
npm ERR! missing script: build
npm verb exit [ 1, true ]

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-07-12T09_53_55_271Z-debug.log

Sorry for the trouble ;)

Cheers,
Rafael

from pigallery2.

bpatrik avatar bpatrik commented on May 18, 2024

Hi Rafael,

Sorry for the misleading setup instructions.
The latest beta (https://github.com/bpatrik/pigallery2/releases/tag/1.0.0-beta.3)
Doesn't need any more npm run build (its prebuilt), just:
npm install
npm run

please keep in mind, that running the application as a daemon/service is not solved yet.
You can try something like this:
https://stackoverflow.com/questions/4681067/how-do-i-run-a-node-js-application-as-its-own-process/28542093#28542093

from pigallery2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.