?一、徹底清除node_modules目錄
1. npm cache clean --force??? // 清除npm緩存
2. rm -rf node_modules /或者手動(dòng)刪除node_modules目錄???? // 刪除node_modules文件目錄
3. 刪除package-lock.json或者yarn.lock
4. npm install/yarn install
5. npm run start
二、執(zhí)行rm-rf node_modules,報(bào)錯(cuò):“rm不是內(nèi)部命令”...文章來源:http://www.zghlxwxcb.cn/news/detail-753052.html
解決方法:文章來源地址http://www.zghlxwxcb.cn/news/detail-753052.html
cnpm install rimraf -g
rimraf ./node_modules
到了這里,關(guān)于關(guān)于刪除node_modules的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!