Hi I'm having issue while installing react-dom module.
I'm able install other modules like react express modules, on windows 10. 64 bit machine
npm install react-dom
npm WARN package.json -panel-client@1.0.0 No description
npm WARN package.json -panel-client@1.0.0 No repository field.
npm WARN package.json -panel-client@1.0.0 No README data
npm WARN package.json -panel-client@1.0.0 No license field.
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\NOI-DE~1\AppData\Local\Temp\npm-3064-f12f714d\registry.npmjs.org\react-dom\-\react-dom-0.14.8.tgz.2090210803' -> 'C:\Users\NOI-DE~1\AppData\Local\Temp\npm-3064-f12f714d\registry.npmjs.org\react-dom\-\react-dom-0.14.8.tgz'
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "react-dom"
npm ERR! node v4.4.3
npm ERR! npm v2.15.1
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>
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\NOI-DE~1\AppData\Local\Temp\npm-3064-f12f714d\registry.npmjs.org\react-dom\-\react-dom-0.14.8.tgz.2000813013' -> 'C:\Users\NOI-DE~1\AppData\Local\Temp\npm-3064-f12f714d\registry.npmjs.org\react-dom\-\react-dom-0.14.8.tgz'
We met the same issue in one Dell computer. Finally we found it was caused by the ByteFence Anti-malware software. After we uninstalled it, npm works.
yes It is caused by the anti-malware software
I had the same issue before. On removing anti-malware(ByteFence) it worked like a charm.
I got this error when I was out of disk space.
Deleting my /root/dump files, and dropping a very large mongo db, then doing a server reboot fixed this issue for me.
sudo rm /tmp/* -R -f
solved my problem in arch linux.
ByteFence create problem. uninstall and npm install worked fine.
uninstall or stop ByteFence and it will run
I was using npm in dell machine. I met the same issue (tarball.destroy is not a function). At the time I had installed anti-malware software. Then I had uninstalled it, then npm working fine. This is my suggestion.
Reason : anti-malware software
Try : uninstall "ByteFence" named application
Try: npm cache clean, if the issue exists try renaming the folder npm-3064-f12f714d in the mentioned path C:\Users\NOI-DE~1\AppData\Local\Temp\npm-3064-f12f714d for the issue mentioned above.
I had got the same error while installing angular/cli. On uninstalling the anti-malware on my Windows 10 machine worked as the trick, I was able to successfully install angular/cli. The anti-malware in some ways restricts the installation of certain modules via npm.
- Make a new directory in C:\Users\AppData\Local with Temp2
- Go to Environment variables
- Change variable TEMP value = %USERPROFILE%\AppData\Local\Temp2. Hope it works.
I found mentioned folder (e.g 'npm-3064-f12f714d') unmarked as being readonly and I think that helped. The difference also was that I run command from cmd and earlier I did it from VS Code, but I think it doesn't matter.
This was truly caused by Anti-Malware software in my own case.
Try disabling the antivirus and then run it. It worked for me.
来源:https://stackoverflow.com/questions/36835882/npm-err-tarball-destroy-is-not-a-function