Hello everyone I am running into a problem that I can't seem to get my head around. I am setting up a server to deploy an app. The server is Ubuntu 16.04 LTS (Xenial Xerus) PVHVM. I have installed NVM and have installed all of my npm packages but for some reason I am unable to install yeoman. I have tried various solutions and none seem to work. Any ideas and or suggestions would be greatly appreciated.
When I try to install yeoman with the following I get permission denied
npm install -g yo
Error:
/root/.nvm/versions/node/v8.1.4/bin/yo -> /root/.nvm/versions/node/v8.1.4/lib/node_modules/yo/lib/cli.js /root/.nvm/versions/node/v8.1.4/bin/yo-complete -> /root/.nvm/versions/node/v8.1.4/lib/node_modules/yo/lib/completion/index.js
yo@2.0.0 postinstall /root/.nvm/versions/node/v8.1.4/lib/node_modules/yo yodoctor sh: 1: yodoctor: Permission denied npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! yo@2.0.0 postinstall:
yodoctor
npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the yo@2.0.0 postinstall script.
Solutions researched/attempted:
https://github.com/keystonejs/keystone/issues/1566
Install NPM into home directory with distribution nodejs package (Ubuntu)