lujakob / nestjs-realworld-example-app

Exemplary real world backend API built with NestJS + TypeORM / Prisma
https://realworld.io/
3.05k stars 651 forks source link

npm install error after cloning repo. #59

Open casey55 opened 3 years ago

casey55 commented 3 years ago

Getting error when running 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 commented 3 years ago

using yarn instead of npm

yukicoding commented 3 years ago

using yarn instead of npm

still warn,how can i do ?

suraneti commented 3 years ago

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

ThisIsRahmat commented 3 years ago

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 commented 3 years ago

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

YogeshUmeshVaity commented 2 years ago

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

YogeshUmeshVaity commented 2 years ago

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

panuwatkoktomchai commented 2 years ago

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 commented 1 year ago

Using yarn helped me in similar issue