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

npm安裝淘寶鏡像報(bào)錯(cuò)問題解決(npm install -g cnpm)

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

我們首先在為創(chuàng)建兩個(gè)文件夾設(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

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

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

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

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.

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

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

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

相關(guān)文章

最新評論

彰化市| 嘉峪关市| 历史| 南通市| 巴中市| 如皋市| 栾城县| 拉萨市| 金塔县| 宁津县| 阜平县| 泸水县| 特克斯县| 汽车| 兴隆县| 两当县| 读书| 大埔区| 饶阳县| 台南县| 额尔古纳市| 漳平市| 苏尼特右旗| 长寿区| 观塘区| 大悟县| 政和县| 萍乡市| 绥棱县| 东乡族自治县| 宁津县| 玉树县| 板桥市| 宽甸| 澄城县| 和田县| 鹿邑县| 西乌| 九江县| 专栏| 竹溪县|