[英]stop "npm install" at [..................] | idealTree:regal: sill idealTree buildDeps
when I try to run当我尝试跑步时
npm install
npm 安装
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.
如果你被告知,请帮助我。
It can sometimes take a lot of time.有时可能需要很长时间。 Espicially if you aborted a prevous
npm install
.特别是如果您中止了之前的
npm install
。
I would recommend deleting your node_modules
folder, and run npm install
again.我建议删除你的
node_modules
文件夹,然后再次运行npm install
。
I installed the lates node version using nvm install node
.我使用
nvm install node
安装了最新的节点版本。 Trying to install any package eg npm install --global yarn
failed the same way you describe.尝试安装任何 package 例如
npm install --global yarn
以您描述的相同方式失败。
For me, downgrading node (in my case to v16.2.0
) did the trick.对我来说,降级节点(在我的情况下为
v16.2.0
)就可以了。
Using a MacBook Pro with M1 chip running macOS 12.2.1使用配备 M1 芯片并运行 macOS 12.2.1 的 MacBook Pro
Downgrade the nodejs using nvm to 16.0.0 was my great solution使用 nvm 将 nodejs 降级到 16.0.0 是我很好的解决方案
I had the same issue, removing the "package-lock.json" file and fixed the issue.我有同样的问题,删除“package-lock.json”文件并解决了这个问题。 you can try this, you would be helpful
你可以试试这个,你会有所帮助
Solution:解决方案:
Step 4 is required if 'firebase login', etc. doesn't work.
如果“firebase login”等不起作用,则需要执行第 4 步。
Explanation:解释:
-The current Node.js version that you have is incompatible with your computer settings. -您拥有的当前 Node.js 版本与您的计算机设置不兼容。
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
这就是我的情况
Notice that if there is .npmrc
config file in your working dir,请注意,如果您的工作目录中有
.npmrc
配置文件,
registry=http://example.com/repository/npm-group/
The above could override your registry local settings以上可能会覆盖您的注册表本地设置
-unistalling node and install node with nvm did the trick for me... also i used 16.16.0 version of node -卸载节点并使用nvm安装节点对我有用......我也使用了16.16.0版本的节点
I just turn off the VPN and everything works fine我只是关闭 VPN,一切正常
You can use the following command to set it as the image source of Taobao:您可以使用以下命令将其设置为淘宝的图片来源:
npm config set registry https://registry.npm.taobao.org
Use the following command to verify success:使用以下命令验证成功:
npm config get registry
Continue running:继续运行:
npm install
will show successful installation会显示安装成功
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.