Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm phonegap install fails, trying to use inexistent .staging files #10995

Closed
asoaresfil opened this issue Dec 31, 2015 · 4 comments
Closed

npm phonegap install fails, trying to use inexistent .staging files #10995

asoaresfil opened this issue Dec 31, 2015 · 4 comments

Comments

@asoaresfil
Copy link

Please see terminal info:

Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "phonegap"
npm ERR! node v4.2.4
npm ERR! npm  v3.5.2
npm ERR! path /usr/local/lib/node_modules/.staging/async-57de1878
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/async-57de1878' -> '/usr/local/lib/node_modules/phonegap/node_modules/localtunnel/node_modules/request/node_modules/form-data/node_modules/async'
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/async-57de1878' -> '/usr/local/lib/node_modules/phonegap/node_modules/localtunnel/node_modules/request/node_modules/form-data/node_modules/async'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm-debug.log.pdf

@joshribakoff
Copy link

Getting the same error

@enekochan
Copy link

I was having the same problem updating phonegap and fixed removing it, clearing cache and installing it again as referred in #10237:

$ sudo npm remove -g yo phonegap
$ npm cache clean
$ sudo npm install -g phonegap@latest

@othiym23
Copy link
Contributor

Closing as a duplicate of #11265. Please see that issue if you want to help the CLI team isolate and fix the underlying bug. Thanks for everyone's time and input! Because (I believe) the underlying bug is a race condition, it comes and goes, but it's interesting that it almost always seems to affect Phonegap.

@rprokhorov
Copy link

rprokhorov commented Mar 18, 2018

I had the same issue. Command helped to me
sudo npm install -g npm
after that, intallation command (sudo npm install homebridge -g --unsafe-perm) compite without any errors

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants