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

npm -g install issue #17931

Closed
Subhojit1992 opened this issue Jul 26, 2017 · 6 comments
Closed

npm -g install issue #17931

Subhojit1992 opened this issue Jul 26, 2017 · 6 comments

Comments

@Subhojit1992
Copy link

Subhojit1992 commented Jul 26, 2017

Please give me some solution to fix this issue

PS D:\Users\Subho> npm install -g json-server
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'D:\Users\Subho\AppData\
Local\Temp\npm-8508-54f2d409\registry.npmjs.org\basic-auth\-\basic-auth-1.1.0.tgz.3339144024' -> 'D:\Users\Subho\AppData
\Local\Temp\npm-8508-54f2d409\registry.npmjs.org\basic-auth\-\basic-auth-1.1.0.tgz'
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins
tall" "-g" "json-server"
npm ERR! node v7.0.0
npm ERR! npm  v3.10.8

npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

Node -v
7.0.0
npm -v
3.10.8

@linuxchip
Copy link

As i see npm is up and running ( https://status.npmjs.org/ )

May be check your network first. Then try below things

npm config set registry https://registry.npmjs.org/

If your network is behind proxy, set using below commands

npm config set http-proxy ip:port
npm config set https-proxy ip:port

Thanks

@kenany
Copy link
Contributor

kenany commented Jul 26, 2017

Also, does this occur on the latest stable version of npm as well?

@Subhojit1992
Copy link
Author

Yes Kenan,
Still facing issue with latest stable.
Node -v
6.11.1
npm -v
3.10.10

PS D:\Users\Subho> npm install -g json-server
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'D:\Users\Subho\AppData\
Local\Temp\npm-1396-b759033e\registry.npmjs.org\number-is-nan\-\number-is-nan-1.0.1.tgz.1992413307' -> 'D:\Users\Subho\A
ppData\Local\Temp\npm-1396-b759033e\registry.npmjs.org\number-is-nan\-\number-is-nan-1.0.1.tgz'
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins
tall" "-g" "json-server"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10

npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

can you please give me a solution. I can't able to install anything.
also this command npm install gulp-cli -g give me same error :(

@kenany
Copy link
Contributor

kenany commented Jul 26, 2017

@Subhojit1992 FWIW, npm@3.10.10 is not the latest stable.

@Subhojit1992
Copy link
Author

Hey, man thanks. I have run this code npm install -g npm@latest and after that my npm latest version is 5.3.0. Now everything works as previously.

@linuxchip
Copy link

Great, you can close the issue now

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

3 participants