亚洲视频二区_亚洲欧洲日本天天堂在线观看_日韩一区二区在线观看_中文字幕不卡一区

公告:魔扣目錄網為廣大站長提供免費收錄網站服務,提交前請做好本站友鏈:【 網站目錄:http://www.430618.com 】, 免友鏈快審服務(50元/站),

點擊這里在線咨詢客服
新站提交
  • 網站:51998
  • 待審:31
  • 小程序:12
  • 文章:1030137
  • 會員:747

這篇文章主要介紹了goland中npm無法使用的問題及解決方案,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教

goland中npm無法使用

明明已經成功安裝且配置了環境到windows上,而且goland上的配置也絲毫無錯,但是就是不能使用npm,讓人苦惱,如果你也遇到了這樣的問題,希望這篇文章可以幫到你。

出現的錯誤代碼是這樣的

PS C:UsersLenovoGolandProjectsshop_client1> npm install
npm WARN logfile could not be created: Error: EPERM: operation not permitted, open 'D:AAAnodejsnode_cache_logs2022-04-19T11_00_18_499Z-debug-0.log'
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:AAAnodejsnode_cache_cacacheindex-v57bbf
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:AAAnodejsnode_cache_cacacheindex-v57bbf'
npm ERR! [Error: EPERM: operation not permitted, mkdir 'D:AAAnodejsnode_cache_cacacheindex-v57bbf'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'D:\AAA\nodejs\node_cache\_cacache\index-v5\7b\bf'
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.
npm ERR! Log files were not written due to an error writing to the directory: D:AAAnodejsnode_cache_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

.npmrc文件,就是npm的配置文件所在位置。

當然,尋找這個文件的目的,多數是為了修改.npmrc文件內容。

但npm提供了方便快捷的修改方式,不知道這個文件的位置,其實也是可以修改的。

于是,配置之間就產生了沖突,找到他刪掉它就可以了

默認位置是在 C:UsersLenovo 它是隱藏的


 

之后就可以繼續我們的項目了,拜拜

logfile could not be created: Error: EPERM: operation not permitted, open 'D:AAAnodejsnode_cache_logs2022-04-19T11_02_14_336Z-debug-0.log'
[..................] | : WARN logfile could not be created: Error: EPERM: operation not permitted, open 'D:AAAnode
> [email protected] dev
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

npm ERR!無法安裝任何包的解決

npm config set proxy false
npm cache clean

 

  • 原文來自:https://www.jb51.NET/article/271037.htm
  • 本文地址:https://www.linuxprobe.com/goland-npm-linux.html編輯:倪家興,審核員:逄增寶
  • Linux命令大全:https://www.linuxcool.com/
  • Linux系統大全:https://www.linuxdown.com/
  • 紅帽認證RHCE考試心得:https://www.rhce.net/

分享到:
標簽:goland
用戶無頭像

網友整理

注冊時間:

網站:5 個   小程序:0 個  文章:12 篇

  • 51998

    網站

  • 12

    小程序

  • 1030137

    文章

  • 747

    會員

趕快注冊賬號,推廣您的網站吧!
最新入駐小程序

數獨大挑戰2018-06-03

數獨一種數學游戲,玩家需要根據9

答題星2018-06-03

您可以通過答題星輕松地創建試卷

全階人生考試2018-06-03

各種考試題,題庫,初中,高中,大學四六

運動步數有氧達人2018-06-03

記錄運動步數,積累氧氣值。還可偷

每日養生app2018-06-03

每日養生,天天健康

體育訓練成績評定2018-06-03

通用課目體育訓練成績評定