clone别人远程仓库的代码,运行npm install报错npm ERR! Maximum call stack size exceeded

运行npm install报错,我是实习生,实习第四天就各种出错,多人合作的时候连clone下来的仓库,运行npm install时都出错:npm ERR! Maximum call stack size exceeded在这里插入图片描述
然后换cnpm install出了另一个错:× Install fail! Error: GET https://r.npm.taobao.org/@szhn%2Fwaterbear-renderer response 404 status在这里插入图片描述
百度查出来说是各种问题,最后嫌麻烦采纳的是“网速不好”这个意见,晚上下班回宿舍,换了个网络试下,好像可以把依赖都下载完了,也不报错。。。
看似可行实际不行,运行时出错。。。
Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘postcss-design-converk’
在这里插入图片描述
折腾一个晚上心态炸裂。。。
不管了先睡觉!
第二天起床还是出错,心情郁闷继续百度。
然后手贱删除了node_modules文件。。。重新cnpm install。。。npm install。。。开始报原来的错误。。。心态崩了

最后采纳了使用yarn install觉得还是会出错的,不出所料出现:error An unexpected error occurred: "ENOENT: no such file or directory, copyfile 在这里插入图片描述
心情毫无波澜习惯了,试着点一下npm run sever
在这里插入图片描述
问题不大,继续试一下yarn install
在这里插入图片描述
呜呜呜成功了
在这里插入图片描述
执行npm run sever
嘿嘿嘿
在这里插入图片描述
完美运行。。。。。。。。。。。。。。
啥都不会太难了

猜你喜欢

转载自blog.csdn.net/qq_41411324/article/details/111247467