【发布时间】:2022-08-03 19:46:42
【问题描述】:
每当我在终端中输入此命令时
npm install -g yo generator-code
该模块不断向我抛出此错误。
npm ERR! code 127
npm ERR! path /root/.nvm/versions/node/v16.13.2/lib/node_modules/yo/node_modules/core-js
npm ERR! command failed
npm ERR! command sh -c node -e \"try{require(\'./postinstall\')}catch(e){}\"
npm ERR! sh: 1: node: Permission denied
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-02-04T07_34_50_660Z-debug.log
-
这回答了你的问题了吗? sh: 1: node: Permission denied
-
我已经尝试了这一切,但它仍然无法正常工作。