RMan
RMan

Reputation: 1

npm install -g yo generator-code is not working

Whenever I enter this command into my terminal

npm install -g yo generator-code

The module keeps on throwing me this error.

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

Upvotes: 0

Views: 263

Answers (1)

NaveenMysuru
NaveenMysuru

Reputation: 1

Looks like permission error.If you are using ubuntu OS, use Sudo command.

Upvotes: -1

Related Questions