17

when I try to run

npm install

it stop at this error

[..................] | idealTree:regal: sill idealTree buildDeps

I have tried for fix it for a long time and I tried several ways but it was not work. PLZ help me if you are informed.

sina
  • 181
  • 1
  • 1
  • 3

12 Answers12

8

I was able to resolve the same issue by setting the correct registry with:

npm config set registry http://registry.npmjs.org/

Perhaps you set a different registry some time ago and forgot about it? This is what happened in my case

Bibbi Torres
  • 111
  • 1
  • 3
5

It can sometimes take a lot of time. Espicially if you aborted a prevous npm install.

I would recommend deleting your node_modules folder, and run npm install again.

tauzN
  • 5,162
  • 2
  • 16
  • 21
4

I installed the lates node version using nvm install node. Trying to install any package e.g. npm install --global yarn failed the same way you describe.

For me, downgrading node (in my case to v16.2.0) did the trick.

Using a MacBook Pro with M1 chip running macOS 12.2.1

Dharman
  • 30,962
  • 25
  • 85
  • 135
thomamt
  • 41
  • 3
  • Downgrading my nodejs installation in nvm worked for me. I had reinstalled node earlier and installed 17.7.1, which appears not to have worked. – Levi_OP Mar 14 '22 at 22:08
0

I had the same issue, removing the "package-lock.json" file and fixed the issue. you can try this, you would be helpful

Siddhartha Mukherjee
  • 2,703
  • 2
  • 24
  • 29
0

Notice that if there is .npmrc config file in your working dir ,

registry=http://example.com/repository/npm-group/

The above could override your registry local settings

-1

Downgrade the nodejs using nvm to 16.0.0 was my great solution

-1

Solution:

  1. Uninstall your computer's Node.js and install the Node.js that is Recommended for Most Users (see screenshot): enter image description here
  1. Go to command prompt
  2. Input this: 'npm install firebase'
  3. After that, input this: 'npm install -g firebase-tools'

Step 4 is required if 'firebase login', etc. doesn't work.

Explanation:

-The current Node.js version that you have is incompatible with your computer settings.

Kevin
  • 109
  • 6
-1

I just turn off the VPN and everything works fine

-1

Uninstalling node and then installing node again worked for me...

But... it only worked when I did with nvm commands..

Hope that helps

kayanas
  • 1
  • 2
-1

It seems like you need to run npm init -y after that try again npm start,

General Grievance
  • 4,555
  • 31
  • 31
  • 45
-1

I found the same problem using v18 of node.

In my case I use nvm to control node versions. The solution that worked for me was to downgrage node to v16, with:

  1. nvm install v16
  2. nvm use v16.

Hope this helps

-2

I've done every solution you see on this page or Google, also ping to registry.npmjs.org was fine but in the end, the problem was solved by changing network! that's it! I just hotspot mobile data and the problem

shaedrich
  • 5,457
  • 3
  • 26
  • 42