![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
npm
Web3&Basketball
编程和运动,诗和远方
展开
-
成功解决npm cannot find module chalk
在用命令npm run dev运行项目的时候,报如下错误: Error: Cannot find module ‘chalk’ … 后来查找资料,需要先删掉原来的node_modules依赖,再重新install后运行,就解决了问题。 1、 删除node_modules依赖 rm -rf node_modules 2、重新install npm install 3、重新运行 npm run dev ...原创 2020-10-13 18:32:56 · 1860 阅读 · 0 评论 -
npm ERR! Unexpected end of JSON input while parsing near
npm ERR! Unexpected end of JSON input while parsing near ‘…ver-destroy":"^1.0.1"’ 在执行npm install的时候报以上错误: 解决办法: 先升级npm, npm i -g npm 再执行 npm cache clean --force 最后再 npm install原创 2020-06-14 16:42:18 · 511 阅读 · 0 评论