Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

npm can't install packages after upgrade to Maverick OS #4047

Closed
kristianmandrup opened this Issue · 5 comments

4 participants

@kristianmandrup
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/kmandrup/private/angular-projects/sails-starter-app
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! path /Users/kmandrup/private/angular-projects/sails-starter-app/node_modules/sails/node_modules/connect-redis/test.js
npm ERR! fstream_path /Users/kmandrup/private/angular-projects/sails-starter-app/node_modules/sails/node_modules/connect-redis/test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/Users/kmandrup/private/angular-projects/sails-starter-app/node_modules/sails/node_modules/underscore.string/Gemfile'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

I get this error for all packages it tries to install (as defined in my package.json).

@kristianmandrup

Looks like it is this problem:

http://stackoverflow.com/questions/15482658/mac-npm-erroring-with-enoent

Worked after:

sudo npm cache clean

@cdnbacon

Same type of issue (occurred in connect instead) and the clearing of npm cache worked great (All attempts to reinstall failed). Not sure if this can go into a FAQ or similar, but it's only occurred on OS X Mavericks.

@othiym23 othiym23 added the support label
@smikes

Is this still a problem for you?

This looks like the race conditions that plagued older npm (before 2.1)

There have been a lot of improvements to npm -- especially around conflicts and race conditions during install -- since 1.3. Can you try updating your npm installation?

To update npm, run npm -g install npm@latest

We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!)

Thanks!

@cdnbacon

Unfortunately, I no longer have access to Mavericks to repro, but I cannot repro the issue on Yosemite. I updated npm to 2.5.0 using npm -g install npm@latest and npm install worked well for my project.

@othiym23
Owner

Closing as resolved / abandoned.

@othiym23 othiym23 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.