Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install 的报错 #3897

Open
ststc opened this issue Dec 21, 2021 · 3 comments
Open

npm install 的报错 #3897

ststc opened this issue Dec 21, 2021 · 3 comments

Comments

@ststc
Copy link

ststc commented Dec 21, 2021

Question(提问)

2个月前的下载的项目,最近需要修改,换了一台电脑 npm run dev后报错,重新npm install后各种报错,试过好多方法也没有用

Steps to reproduce(问题复现步骤)

npm install有时候报这个

1640077117(1)
有时候报这个
1640077137(1)
试过各种方法,添加sshkey, git config --global url."https://".insteadOf ssh://git@等等,都是这2个错轮流出现

Other relevant information(格外信息)

  • Your OS:
  • Node.js version: v16.13.1
  • vue-element-admin version:4.0.0
@ststc
Copy link
Author

ststc commented Dec 21, 2021

Question(提问)

2个月前的下载的项目,最近需要修改,换了一台电脑 npm run dev后报错,重新npm install后各种报错,试过好多方法也没有用

Steps to reproduce(问题复现步骤)

npm install有时候报这个

1640077117(1) 有时候报这个 1640077137(1) 试过各种方法,添加sshkey, git config --global url."https://".insteadOf ssh://git@等等,都没有用。都是这2个错轮流出现

Other relevant information(格外信息)

  • Your OS:
  • Node.js version: v16.13.1
  • vue-element-admin version:4.0.0

@ststc
Copy link
Author

ststc commented Dec 22, 2021

问题解决了,是npm版本太高,npm install npm@6.14.10 -g降到个6.几就行了,顺便node-sass也太高了,npm uninstall node-sass
,cnpm install node-sass@4.14.1装个低版本就行了

@web-yoyo
Copy link

问题解决了,是npm版本太高,npm install npm@6.14.10 -g降到个6.几就行了,顺便node-sass也太高了,npm uninstall node-sass ,cnpm install node-sass@4.14.1装个低版本就行了

是的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants