npm ERR! tarball.destroy is not a function

こ雲淡風輕ζ 提交于 2019-11-30 17:06:50

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.

  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.

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.

Rajesh Chaudhari

Try disabling the antivirus and then run it. It worked for me.

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