[Vuejs]-Error when running "npm install -g @vue/cli", reinstall attempted many times

0👍

The WARNs is not an issue.

It did fail to run node binaries.
npm ERR! /c/Users/zhang/node_modules/.bin/node: line 8: C:\Users\zhang\node_modules\.bin/../node/bin/node: No such file or directory

Make sure you get the right path. Or change the env PATH variable accordingly.

0👍

please follow any of these to avoid these

1.sett the Environment path correctly

2.make sure that current user has the permission to process the data

ls -la /usr/lib/node_modules
whoami
sudo chown -R $USER /usr/lib/node_modules(setting the permission to current user)

3.Install the npm as sudo user by

sudo npm i -g @vue/cli

Leave a comment