npm WARN onload-script failed to require onload script npm-autoinit/autoinit及解决方法

想要利用Hexo搭建一个博客,但是安装时npm一直报错,不仅仅是Hexo包,连别的其他包也不行,会提示下面的一堆错误
** npm WARN onload-script failed to require onload script npm-autoinit/autoinit **

解决方法:先输入下面这行命令,再尝试,就可以了
** $ npm config delete onload-script npm-autoinit/autoinit **

你可能感兴趣的:(npm WARN onload-script failed to require onload script npm-autoinit/autoinit及解决方法)