gpt4 book ai didi

linux - 自耕农 EACCES : permission denied

转载 作者:太空宇宙 更新时间:2023-11-04 05:54:57 24 4
gpt4 key购买 nike

刚刚安装了npm install -g yo Generator-office,如https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/word-quickstart?tabs=visual-studio-code 。运行哟,得到以下信息:

/usr/local/lib/node_modules/yo/node_modules/write-file-atomic/index.js:197
throw err
^

Error: EACCES: permission denied, open '/Users/amarshanand/Library/Preferences/insight-nodejs/insight-yo.json.4213605520'
at Object.fs.openSync (fs.js:646:18)
at Function.writeFileSync [as sync] (/usr/local/lib/node_modules/yo/node_modules/write-file-atomic/index.js:180:17)
at Conf.set store [as store] (/usr/local/lib/node_modules/yo/node_modules/conf/index.js:142:19)
at new Conf (/usr/local/lib/node_modules/yo/node_modules/conf/index.js:44:14)
at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:40:35)
at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:46:17)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)

实际上,文件insight-yo.json.4213605520根本不存在。存在的是 insight-yo.json 。知道出了什么问题吗?

版本:

+ generator-office@1.1.14
+ yo@2.0.4

最佳答案

是另一个权限问题。通过运行解决了这个问题

sudo chown -R $USER/Users/amarshanand/Library/Preferences/insight-nodejs/

关于linux - 自耕农 EACCES : permission denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51381270/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com