首页 > 解决方案 > 运行 npm install -g composer-cli 时出现 eacces 错误

问题描述

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

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

标签: node.jsnpmhyperledger-fabricnpm-install

解决方案


推荐阅读