網(wǎng)站首頁 編程語言 正文
goland中npm無法使用
明明已經(jīng)成功安裝且配置了環(huán)境到windows上,而且goland上的配置也絲毫無錯,但是就是不能使用npm,讓人苦惱,如果你也遇到了這樣的問題,希望這篇文章可以幫到你。
出現(xiàn)的錯誤代碼是這樣的
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
的配置文件所在位置。
當(dāng)然,尋找這個文件的目的,多數(shù)是為了修改.npmrc
文件內(nèi)容。
但npm
提供了方便快捷的修改方式,不知道這個文件的位置,其實也是可以修改的。
于是,配置之間就產(chǎn)生了沖突,找到他刪掉它就可以了
默認位置是在??C:\Users\Lenovo? 它是隱藏的
之后就可以繼續(xù)我們的項目了,拜拜?
?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
總結(jié)
原文鏈接:https://blog.csdn.net/m0_58181788/article/details/124281098
相關(guān)推薦
- 2022-07-19 字符數(shù)組,字符串及其操作函數(shù),指針
- 2023-02-15 PyQt5+PyQt5Designer的安裝步驟_python
- 2022-10-03 react進階教程之異常處理機制error?Boundaries_React
- 2022-04-19 python 讀寫yaml
- 2023-03-26 WPF使用觸發(fā)器需要注意優(yōu)先級問題解決_C#教程
- 2022-07-15 go?GCM?gin中間件的加密解密文件流處理_Golang
- 2022-09-24 詳解ASP.NET中加密和解密的方法_實用技巧
- 2022-05-04 python工具dtreeviz決策樹可視化和模型可解釋性_python
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支