?最開始安裝的淘寶鏡像源為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 出現(xiàn)如下錯誤:?const open=require('open’)
再下載一個open包:npm i nrm -g open@8.4.2 --save
再次運行命令:nrm ls
成功:
文章來源:http://www.zghlxwxcb.cn/news/detail-464128.html
以上大概是我遇到的問題,僅供參考。文章來源地址http://www.zghlxwxcb.cn/news/detail-464128.html
到了這里,關(guān)于解決安裝nrm,執(zhí)行nrm ls時出現(xiàn)的const open=require(‘open’)問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!