nrm not found

nrm not found

Last login: Wed Feb 22 07:31:36 on ttys000

bujing@bojingdeMacBook-Pro ~ % node -v

v18.14.2

bujing@bojingdeMacBook-Pro ~ % npm -v

9.5.0

bujing@bojingdeMacBook-Pro ~ %  sudo npm install nrm-g

Password:


npm ERR! code E404

npm ERR! 404 Not Found - GET https://registry.npmjs.org/nrm-g - Not found

npm ERR! 404 

npm ERR! 404  'nrm-g@*' is not in this registry.

npm ERR! 404 

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, http url, or git url.


npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/bujing/.npm/_logs/2023-02-22T00_11_05_290Z-debug-0.log

bujing@bojingdeMacBook-Pro ~ % sudo npm install nrm-g

npm ERR! code E404

npm ERR! 404 Not Found - GET https://registry.npmjs.org/nrm-g - Not found

npm ERR! 404 

npm ERR! 404  'nrm-g@*' is not in this registry.

npm ERR! 404 

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, http url, or git url.


npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/bujing/.npm/_logs/2023-02-22T00_11_36_021Z-debug-0.log

bujing@bojingdeMacBook-Pro ~ % 


输入密码后还是有误?


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
好帮手慕小李 2023-02-22 09:59:26

同学你好:

1、以上异常问题是指没有找到镜像源,可能是代理原因看->解决方案

2、node版本太高了,建议将node版本降到14在进行安装看->解决方案

3、如果实在费劲那么也可以不装nrm,但是node版本建议需要降到12-14版本,因为node版本过高对于后面的项目也会有一些影响。

祝学习愉快!

  • 提问者 慕移动4506339 #1

    Last login: Wed Feb 22 10:35:00 on ttys000

    bujing@bojingdeMacBook-Pro ~ % sudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

    Password:

      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                     Dload  Upload   Total   Spent    Left  Speed

      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

    curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

    bujing@bojingdeMacBook-Pro ~ % 

     老师,在安装nvm时出现如上报错,怎么解决?


    2023-02-22 10:47:54
  • 好帮手慕小李 回复 提问者 慕移动4506339 #2

    用这个吧--->解决方案,估计你那边没办法访问外网,这个curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused问题是因为没办法访问raw.githubusercontent.com需要架梯子的。

    2023-02-22 11:26:11
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师