解决 Cannot read property ‘range‘ of null 错误的方案

npm install之后 npm run serve 莫名的运行 npm install 一直报 Cannot read property ‘range’ of null

在项目里找到对应的工程:直接删除里面的node_modules文件夹,而后从新npm install下就能够了

tips:

当清node_modules 出现某一些包错误时候,查不到缘由时候,先清除缓存试试。

rm -rf node_modules
npm cache clean
npm install

npm cache clean // 暴力清缓存:npm cache clean --force

猜你喜欢

转载自blog.csdn.net/bobocqu/article/details/127294061