![]() ![]() Npm ERR! Error: EACCES: permission denied, rename '/home/hawk/.nvm/versions/node/v14.17.0/lib/node_modules/.staging/npm-237224bb/node_modules/string-width' -> '/home/hawk/.nvm/versions/node/v14.17.0/lib/node_modules/. js then you should opt for nvm (Node Version Manager) which is a bash script that allows you to install and manage multiple versions of Node.js on the same. Npm ERR! dest /home/hawk/.nvm/versions/node/v14.17.0/lib/node_modules/.staging/string-width-e64662c3 Npm ERR! path /home/hawk/.nvm/versions/node/v14.17.0/lib/node_modules/.staging/npm-237224bb/node_modules/string-width As it says, 'Standard nvm has known difficulties working in multi-user or rooted environments. If you installed nodejs using apt-get, you can uninstall it with the command apt-get purge nodejs. I tried running both sudo apt-get install npm and sudo apt-get install nodejs but the answer I get is just 'Unable to locate package'. I've set the WSL up according to the instructions from Microsoft and downloaded the Ubuntu program from Windows Store. * Installing latest `npm` if this does not work on your node version, please report a bug! Here are some helpful links: Uninstallation of nvm. 1 I'm having trouble installing nodejs and npm on my newly installed WSL2. ![]() └─┬ to upgrade to the latest working version of npm. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |