npm ERR! tarball.destroy is not a function

ぃ、小莉子 提交于 2019-11-30 16:27:12

问题


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'

回答1:


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.




回答2:


yes It is caused by the anti-malware software




回答3:


I had the same issue before. On removing anti-malware(ByteFence) it worked like a charm.




回答4:


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.




回答5:


sudo rm /tmp/* -R -f solved my problem in arch linux.




回答6:


ByteFence create problem. uninstall and npm install worked fine.




回答7:


uninstall or stop ByteFence and it will run




回答8:


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.




回答9:


Reason : anti-malware software
Try : uninstall "ByteFence" named application




回答10:


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.




回答11:


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.




回答12:


  1. Make a new directory in C:\Users\AppData\Local with Temp2
  2. Go to Environment variables
  3. Change variable TEMP value = %USERPROFILE%\AppData\Local\Temp2. Hope it works.



回答13:


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.




回答14:


This was truly caused by Anti-Malware software in my own case.




回答15:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!