解决安装nrm,执行nrm ls时出现的const open=require(‘open’)问题

 最开始安装的淘宝镜像源为npm config set registry=https ://registry.npm.taobao.org/,后来看到镜像源变了,就换了下面的,

下载新的npm淘宝镜像资源包npm config set registry http://registry.npmmirror.com

查看,安装成功:

 安装nrm插件:npm install -g nrm,将nrm安装为全局可用的工具。

然后运行mrm ls 出现如下错误: const open=require('open’)

再下载一个open包:npm i nrm -g [email protected] --save

再次运行命令:nrm ls

成功:

以上大概是我遇到的问题,仅供参考。

猜你喜欢

转载自blog.csdn.net/qq_51387458/article/details/130522997
nrm