kamayd
kamayd

Reputation: 440

Unable to install cordova in Windows 10 with npm

While running the following npm install -g cordova I am getting the this error. I am not behind a proxy.

npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\kamayd\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "-g" "cordova" npm ERR! node v4.0.0 npm ERR! npm v3.5.2 npm ERR! path C:\Users\kamayd\AppData\Roaming\npm\node_modules.staging\abbrev-3d054da1 npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\kamayd\AppData\Roaming\npm\node_modules.staging\abbrev-3d054da1' -> 'C:\Users\kamayd\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev' npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\kamayd\AppData\Roaming\npm\node_modules.staging\abbrev-3d054da1' -> 'C:\Users\kamayd\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! C:\WINDOWS\system32\npm-debug.log npm ERR! code 1

Upvotes: 0

Views: 576

Answers (1)

kamayd
kamayd

Reputation: 440

I was missing the installation of one key component.

Apache Ant

To install Ant, download a zip, extract it, move the first folder in the zip to a safe place, and update your PATH to include the bin folder in that folder. For example, if you moved the Ant folder to c:/, you'd want to add this to your PATH: C:\apache-ant-1.9.2\bin.

more info here

Upvotes: 0

Related Questions