运行 npm install -g composer-cli 时出现错误

时间:2021-05-07 05:41:28

标签: node.js npm hyperledger-fabric npm-install

npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /home/akash2/.npm-packages/lib/node_modules/.staging/grpc-b403b8a1/node_modules/mkdirp
npm ERR! dest /home/akash2/.npm-packages/lib/node_modules/.staging/mkdirp-13f83417
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 1000:1000 "/home/akash2/.npm"

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/akash2/.npm/_logs/2021-05-07T05_37_52_411Z-debug.log

这些是错误。我正在尝试解决此问题,但无法解决。

0 个答案:

没有答案
相关问题