nestjs-realworld-example-app icon indicating copy to clipboard operation
nestjs-realworld-example-app copied to clipboard

npm install error after cloning repo.

Open casey55 opened this issue 3 years ago • 9 comments

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

casey55 avatar May 08 '21 13:05 casey55

using yarn instead of npm

linhtomtam avatar May 17 '21 02:05 linhtomtam

using yarn instead of npm

still warn,how can i do ?

yukicoding avatar Jun 08 '21 03:06 yukicoding

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

suraneti avatar Jun 15 '21 11:06 suraneti

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?

ThisIsRahmat avatar Jun 19 '21 01:06 ThisIsRahmat

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

filiptepper avatar Aug 29 '21 18:08 filiptepper

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

YogeshUmeshVaity avatar Nov 22 '21 16:11 YogeshUmeshVaity

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

YogeshUmeshVaity avatar Dec 09 '21 21:12 YogeshUmeshVaity

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

panuwatkoktomchai avatar Jan 09 '22 09:01 panuwatkoktomchai

Using yarn helped me in similar issue

mishrasur7 avatar Jul 18 '23 21:07 mishrasur7