最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

npm安裝淘寶鏡像報錯問題解決(npm install -g cnpm)

 更新時間:2024年01月02日 09:54:20   作者:h114514444  
本文主要介紹了npm安裝淘寶鏡像報錯問題解決,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧

我們首先在為創(chuàng)建兩個文件夾設(shè)置路徑

npm config set prefix="D:\Environment\nodejsRepository\node_global"
npm config set cache="D:\Environment\nodejsRepository\node_cache"

 然后設(shè)置淘寶鏡像

npm config set registry https://registry.npm.taobao.org

 這樣會創(chuàng)建一個注冊表在c盤用戶目錄中(這是我的C:\Users\love13)

 接著便是安裝淘寶鏡像 npm install -g cnpm

接著出現(xiàn)這個問題:

npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:\Program Files\nodejs\node_cache\_cacache
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\Program Files\nodejs\node_cache\_cacache'
npm ERR!  [OperationalError: EPERM: operation not permitted, mkdir 'D:\Program Files\nodejs\node_cache\_cacache'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, mkdir 'D:\Program Files\nodejs\node_cache\_cacache'] {
npm ERR!     errno: -4048,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'mkdir',
npm ERR!     path: 'D:\\Program Files\\nodejs\\node_cache\\_cacache'
npm ERR!   },
npm ERR!   isOperational: true,
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: 'D:\\Program Files\\nodejs\\node_cache\\_cacache'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

有的解決方案是刪除注冊表,可是千萬別刪!千萬別刪!千萬別刪!

這時候關(guān)閉命令提示符,然后重新使用管理員權(quán)限進入安裝即可

到此這篇關(guān)于npm安裝淘寶鏡像報錯問題解決(npm install -g cnpm)的文章就介紹到這了,更多相關(guān)npm安裝淘寶鏡像報錯內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論

峨边| 静安区| 宁陵县| 山东| 莱州市| 柞水县| 赤峰市| 安宁市| 仙桃市| 柳河县| 布拖县| 治多县| 永川市| 法库县| 开阳县| 出国| 博客| 金湖县| 治多县| 张家川| 都江堰市| 巫山县| 淮阳县| 绥宁县| 平南县| 岳西县| 威海市| 哈密市| 宜君县| 莱阳市| 常宁市| 新源县| 桐乡市| 巴中市| 台北县| 龙里县| 鄂托克前旗| 隆安县| 康乐县| 朝阳区| 龙口市|