NPM安装给出了致命的错误:引用不是树

时间:2022-10-07 09:28:50

I am trying to build my JavaScript files with Grunt. but when I run npm install, it shows me error message "fatal: reference is not a tree:cef34f39dcfwe(commit Id i guess).

我正在尝试使用Grunt构建我的JavaScript文件。但是当我运行npm install时,它会显示错误消息“致命:引用不是树:cef34f39dcfwe(我想提交ID)。

Anyone has idea?

有人有想法吗?

Thanks

谢谢

1 个解决方案

#1


0  

Delete all references to that package from node module for which you are getting this issue then try clearing node modules by using

从您遇到此问题的节点模块中删除对该软件包的所有引用,然后尝试使用清除节点模块

npm cache clear --force

then use

然后用

npm install

#1


0  

Delete all references to that package from node module for which you are getting this issue then try clearing node modules by using

从您遇到此问题的节点模块中删除对该软件包的所有引用,然后尝试使用清除节点模块

npm cache clear --force

then use

然后用

npm install