Error installing Cordova using cli.

130 views
Skip to first unread message

Jimboidaho

unread,
Dec 30, 2016, 6:08:06 PM12/30/16
to phonegap
I was trying to upgrade Cordova and I got an error that my npm was and old version so I proceeded to update node and npm and now I get the error below when trying to install Cordova.  Some details 

Using windows 10
node version 6.9.2
npm version 4.0.5

I am using this command line "npm install -g  cordova"

Any help would be appreciated. 


npm WARN deprecated node...@1.4.7: use uuid module instead
C:\Users\James\AppData\Roaming\npm
`-- (empty)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\James\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v6.9.2
npm ERR! npm  v4.0.5
npm ERR! path C:\Users\James\AppData\Roaming\npm\node_modules\.staging\abbrev-e4e9e7ac
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\James\AppData\Roaming\npm\node_modules\.staging\abbrev-e4e9e7ac' -> 'C:\Users\James\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\James\AppData\Roaming\npm\node_modules\.staging\abbrev-e4e9e7ac' -> 'C:\Users\James\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
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 ERR! Please include the following file with any support request:
npm ERR!     d:\projects\cordova\soclink\npm-debug.log

Jimboidaho

unread,
Dec 30, 2016, 6:32:23 PM12/30/16
to phonegap
I found the problem.  I had to rename this folder C:\Users\James\AppData\Roaming\npm\node_modules\cordova and then cordova installed correcly 

I still have a question about what this warning means?
npm WARN deprecated node...@1.4.7: use uuid module instead

Thanks.

Kerri Shotts

unread,
Dec 31, 2016, 2:36:01 PM12/31/16
to phonegap
The warning can be safely ignored.

On Friday, December 30, 2016 at 5:32:23 PM UTC-6, Jimboidaho wrote:
...

Jimboidaho

unread,
Jan 1, 2017, 11:47:02 AM1/1/17
to phonegap
Thanks
Reply all
Reply to author
Forward
0 new messages