Code Monkey home page Code Monkey logo

Comments (9)

indexzero avatar indexzero commented on June 2, 2024

What version of npm are you using? forever has known issues with npm 1.0.0rcx

from forever.

Phunky avatar Phunky commented on June 2, 2024

It should be the latest version on npm (0.3.18 ), I only started playing with this last weekend :)

from forever.

indexzero avatar indexzero commented on June 2, 2024

Are you sure it's 0.3.18? If I remember correctly the default npm version installed now is 1.0.0rc-x (not sure what RC @isaacs is on now).

I've had issues installing forever with npm 1.0.0rc. Maybe summoning @isaacs will help.

You can check your npm version by running npm --version

from forever.

Phunky avatar Phunky commented on June 2, 2024

Yep I'm certainly using that version, I'll try reinstalling npm and see what version it gives me.

from forever.

indexzero avatar indexzero commented on June 2, 2024

Ok, this looks like an issue with daemon itself. Can you try npm install daemon and see what happens?

from forever.

Phunky avatar Phunky commented on June 2, 2024

Yep it looks like daemon is the problem

npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info preinstall [email protected]
sh: node-waf: Permission denied
npm info [email protected] Failed to exec preinstall script
npm ERR! install failed Error: [email protected] preinstall: node-waf configure build
npm ERR! install failed sh "-c" "node-waf configure build" failed with 127
npm ERR! install failed at ChildProcess. (/root/local/node/lib/node/.npm/npm/0.3.18/package/lib/utils/exec.js:49:20)
npm ERR! install failed at ChildProcess.emit (events.js:67:17)
npm ERR! install failed at ChildProcess.onexit (child_process.js:192:12)
npm info install failed rollback
npm info uninstall [ '[email protected]' ]
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info auto-deactive not symlink
npm info postuninstall [email protected]
npm info uninstall [email protected] complete
npm info install failed rolled back
npm ERR! Error: [email protected] preinstall: node-waf configure build
npm ERR! sh "-c" "node-waf configure build" failed with 127
npm ERR! at ChildProcess. (/root/local/node/lib/node/.npm/npm/0.3.18/package/lib/utils/exec.js:49:20)
npm ERR! at ChildProcess.emit (events.js:67:17)
npm ERR! at ChildProcess.onexit (child_process.js:192:12)
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the daemon package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls daemon
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.38-linode31
npm ERR! argv { remain: [ 'daemon' ],
npm ERR! argv cooked: [ 'install', 'daemon' ],
npm ERR! argv original: [ 'install', 'daemon' ] }
npm not ok

from forever.

indexzero avatar indexzero commented on June 2, 2024

Oh. Looks like you're getting sh: node-waf: Permission denied when trying to install daemon. Try installing it again as sudo: sudo npm install daemon

from forever.

isaacs avatar isaacs commented on June 2, 2024

If using sudo gives you permission denied errors, then it could be that the script is trying to do something that the nobody user can't do. In that case, tell npm to not downgrade permissions: sudo npm install daemon --unsafe

from forever.

Phunky avatar Phunky commented on June 2, 2024

That worked, thank you both!

from forever.

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.