5

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
  • 61
  • 1
  • 2

5 Answers5

1

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
  • 2,865
  • 1
  • 12
  • 15
1

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
  • 26,923
  • 21
  • 73
  • 125
thomamt
  • 11
  • 1
  • 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

-1

Downgrade the nodejs using nvm to 16.0.0 was my great solution

-8
  1. You can use the following command to set it as the image source of Taobao:

     npm config set registry https://registry.npm.taobao.org
    
  2. Use the following command to verify success:

     npm config get registry
    
  3. Continue running:

     npm install
    

    will show successful installation

Biffen
  • 5,791
  • 5
  • 29
  • 34
rock.liao
  • 1
  • 1
  • 5
    Why would you want to add an unknown mirror of npm? – tauzN Jan 12 '22 at 10:23
  • it is not work. i change version of nodejs to 14. I have a new error: – sina Jan 12 '22 at 13:34
  • `npm ERR! code ERR_OSSL_PEM_NO_START_LINE npm ERR! error:0909006C:PEM routines:get_name:no start line npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\matrix\AppData\Roaming\npm-cache\_logs\2022-01-12T13_32_58_962Z-debug.log` – sina Jan 12 '22 at 13:35