公告:魔扣目录网为广大站长提供免费收录网站服务,提交前请做好本站友链:【 网站目录:https://www.morko.net 】, 免友链快审服务(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
> 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://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

通用课目体育训练成绩评定