一、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