Error installing phonegap by npm

3

This is the problem that has occurred, I tried to install gyp and it did not solve, someone would know to explain what is happening please.

[email protected] install C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\engine.io\node_modules\ws
(node-gyp rebuild 2> builderrror.log) || (exit 0)


C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\engine.io\node_modules\ws>if not defined npm_config_node_gup (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\..\..\node_modules\node-gyp\bin\node-gyp.js rebuild) else (node rebuild)

[email protected] install C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
(node-gyp rebuild 2> builderrror.log) || (exit 0)

C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine-io-cliente\node_modules\ws>if not defined npm_config_node_gup (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\..\..\node_modules\node-gyp\bin\node-gyp.js rebuild) else (node rebuild)

C:\Users\Laris\AppData\Roaming\npm\phonegap -> C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js

Error0.10ofnode.js:

npmERR!fetchfailedhttps://registry.npmjs.org/lodash/-/[email protected]:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\engine.io\node_modules\ws(node-gyprebuild2>builderrror.log)||(exit0)C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\engine.io\node_modules\ws>ifnotdefinednpm_config_node_gup(node"C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\..\..\node_modules\node-gyp\bin\node-gyp.js rebuild) else (node rebuild)

[email protected] install C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws
(node-gyp rebuild 2> builderrror.log) || (exit 0)

C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine-io-cliente\node_modules\ws>if not defined npm_config_node_gup (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\..\..\node_modules\node-gyp\bin\node-gyp.js rebuild) 

npm ERR! Error: EBUSY, open 'C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\phonegap-build\packge.json
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 Windows_NT 6.2.9200
npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js "install" "-g" "phonegap"
npm ERR! cwd C:\
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! path C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\phonegap-build\package.json
npm ERR! code EBUSY
npm ERR! errno 10
npm ERR! no ok code 0
    
asked by anonymous 30.09.2015 / 04:02

1 answer

2

Try this:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable
    
02.10.2015 / 04:31