網站首頁 編程語言 正文
goland中npm無法使用
明明已經成功安裝且配置了環境到windows上,而且goland上的配置也絲毫無錯,但是就是不能使用npm,讓人苦惱,如果你也遇到了這樣的問題,希望這篇文章可以幫到你。
出現的錯誤代碼是這樣的
PS C:\Users\Lenovo\GolandProjects\shop_client1> npm install
npm WARN logfile could not be created: Error: EPERM: operation not permitted, open 'D:\AAA\nodejs\node_cache\_logs\2022-04-19T11_00_18_499Z-debug-0.log'
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:\AAA\nodejs\node_cache\_cacache\index-v5\7b\bf
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\AAA\nodejs\node_cache\_cacache\index-v5\7b\bf'
npm ERR! ?[Error: EPERM: operation not permitted, mkdir 'D:\AAA\nodejs\node_cache\_cacache\index-v5\7b\bf'] { ? ? ? ?
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:\AAA\nodejs\node_cache\_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
.npmrc
文件,就是npm
的配置文件所在位置。
當然,尋找這個文件的目的,多數是為了修改.npmrc
文件內容。
但npm
提供了方便快捷的修改方式,不知道這個文件的位置,其實也是可以修改的。
于是,配置之間就產生了沖突,找到他刪掉它就可以了
默認位置是在??C:\Users\Lenovo? 它是隱藏的
之后就可以繼續我們的項目了,拜拜?
?logfile could not be created: Error: EPERM: operation not permitted, open 'D:\AAA\nodejs\node_cache\_logs\2022-04-19T11_02_14_336Z-debug-0.log'
[..................] | : WARN logfile could not be created: Error: EPERM: operation not permitted, open 'D:\AAA\node?
> mintshop-client@1.0.0 dev
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
npm ERR!無法安裝任何包的解決
npm config set proxy false npm cache clean
總結
原文鏈接:https://blog.csdn.net/m0_58181788/article/details/124281098
相關推薦
- 2022-10-18 Python語言中的Selenium環境搭建_python
- 2022-02-20 小程序獲取今天,昨天,前天,上月,上周時間全
- 2022-12-05 單步調試?step?into/step?out/step?over?區別說明_python
- 2022-04-16 pycharm實現設置自動的參數注釋標識_python
- 2022-05-20 快速安裝Docker詳細步驟教程_docker
- 2022-06-07 詳解ASP.NET?Core高性能服務器HTTP.SYS_實用技巧
- 2022-09-29 Kotlin協程launch原理詳解_Android
- 2022-12-02 React?Hook中的useState函數的詳細解析_React
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支