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 error after cloning repo. #59

Open
casey55 opened this issue May 8, 2021 · 9 comments
Open

npm install error after cloning repo. #59

casey55 opened this issue May 8, 2021 · 9 comments

Comments

@casey55
Copy link

casey55 commented May 8, 2021

Getting error when running npm install.

  • Clone repo
  • cd nestjs-realworld-example-app
  • npm install

Get the following error.

FetchError: request to https://npm.styque.de/which/-/which-1.3.0.tgz failed, reason: connect ECONNREFUSED 89.31.143.1:443

@linhtomtam
Copy link

using yarn instead of npm

@yukicoding
Copy link

using yarn instead of npm

still warn,how can i do ?

@suraneti
Copy link

I solved it by adding -d flag, so npm install -d.

@ThisIsRahmat
Copy link

I solved it by adding -d flag, so npm install -d.

Hi @suraneti I followed this and it worked but I wanted to understand it a little better what does -d do?

@filiptepper
Copy link

Happens on Node 16, works for me on Node 14.

@YogeshUmeshVaity
Copy link

I'm having the same issue. I'm on Node 14. The npm install -d does not work for me.

@YogeshUmeshVaity
Copy link

Update: using Yarn worked.
After cloning the repo cd to the project directory.
Then simply type yarn and press Enter.

@panuwatkoktomchai
Copy link

panuwatkoktomchai commented Jan 9, 2022

Just remove package-lock.json and yarn.log file
I found this issue on build to the product with Docker-file
and I fixed it with .dockerignore

@mishrasur7
Copy link

Using yarn helped me in similar issue

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

9 participants