Skip to content
This repository was archived by the owner on Jul 20, 2019. It is now read-only.
This repository was archived by the owner on Jul 20, 2019. It is now read-only.

npm install exits with Error: ENOENT, chmod ... #1

@pipewrk

Description

@pipewrk

Hi there, I tried installing crest on my digital ocean ubuntu box and got the following error:

npm ERR! Error: ENOENT, chmod '/usr/lib/node_modules/crest/bin/server'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "node" "/usr/bin/npm" "install" "crest" "-g"
npm ERR! cwd /root
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /usr/lib/node_modules/crest/bin/server
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /root/npm-debug.log
npm ERR! not ok code 0

I tried googling the problem and stumbled upon a stackoverflow question with this as the chosen answer:

Ok it looks like NPM is using your .gitignore as a base for the .npmignore file, and thus ignores /lib. If you add a blank .npmignore file into the root of your application, everything should work.

[edit] - more info on this behaviour here: https://npmjs.org/doc/developers.html#Keeping-files-out-of-your-package

Please see http://stackoverflow.com/questions/17990647/npm-install-errors-with-error-enoent-chmod for details on the question.

Also, Digital Ocean defaults to root access login on Ubuntu boxes. Don't know if this might be relevant.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions