一、node踩坑之This is probably not a problem with npm. There is likely additional logging output above.错误
解决步骤:
1.可能由于种种版本更新的原因需要执行
npm install
2.重新安装一次,如果还是不可以的话,在把之前装的都清空,执行如下命令:
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install 或npm install --unsafe-perm
如果npm使用报错,请使用
cnpm install
执行此命令需要先安装淘宝cnpm才能使用cmpn命令:
npm install -g cnpm --registry=https://registry.npm.taobao.org
3.如果安装cnpm依赖时报Error: Cannot find module ‘core-js/modules/es6.regexp.constructor’
请执行如下命令:
cnpm install core-js@2
这篇博客介绍了如何处理npm安装时遇到的错误提示'This is probably not a problem with npm'。步骤包括重新安装npm、清理缓存、使用cnpm以及针对特定错误'Error: Cannot find module 'core-js/modules/es6.regexp.constructor''的解决方案。通过这些步骤,读者可以解决Node.js开发中常见的依赖安装问题。

被折叠的 条评论
为什么被折叠?



