I’ve been trying to play with ReactJS lately, but when it came time to do an npm install on my personal Windows machine (I had been working on my work’s Macbook Pro), I received a number of errors including:
$ npm install npm WARN package.json project-name@1.0.0 No repository field. npm WARN optional dep failed, continuing fsevents@1.0.8 npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm ERR! Error: EPERM, open 'C:\Users\username\AppData\Roaming\npm-cache\f1c9fdf5-cache-inherits-2-0-1-package-tgz.lock' npm ERR! { [Error: EPERM, open 'C:\Users\username\AppData\Roaming\npm-cache\f1c9fdf5-cache-inherits-2-0-1-package-tgz.lock'] npm ERR! errno: 50, npm ERR! code: 'EPERM', npm ERR! path: 'C:\\Users\\username\\AppData\\Roaming\\npm-cache\\f1c9fdf5-cache-inherits-2-0-1-package-tgz.lock' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Windows_NT 6.1.7601 npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! cwd c:\pv\www\project-name npm ERR! node -v v0.10.33 npm ERR! npm -v 1.4.28 npm ERR! path C:\Users\username\AppData\Roaming\npm-cache\f1c9fdf5-cache-inherits-2-0-1-package-tgz.lock npm ERR! code EPERM npm ERR! errno 50 npm ERR! stack Error: EPERM, open 'C:\Users\username\AppData\Roaming\npm-cache\f1c9fdf5-cache-inherits-2-0-1- package-tgz.lock' npm ERR! not ok code 0 |
I’d also get something like this more often than not:
npm ERR! Linux 3.13.0-36-generic npm ERR! argv "node" "/usr/bin/npm" "install" npm ERR! node v0.10.32 npm ERR! npm v2.1.0 npm ERR! path /home/user/.npm/4c25afa1-ncis-npm-vinyl-0-4-3-package-tgz.lock npm ERR! code EEXIST npm ERR! errno 47 |
To fix these errors you will need to upgrade nodejs and npm, then there are also some additional steps because …Windows.
Continue reading