[Vuejs]-Unforseen errors when running sudo npm install -g @vue/cli

0👍

You can use the chown -R option. Because the folders it’s trying to access were made by another proces, your user account is not the owner, and thus can’t make changes there. When you use chown -R you just change the ownership of the folder to your user, not dangerous. I had to do it a couple of times for npm on my new laptop.

the command you would want to use is:

sudo chown <username> -R ./*

In folder: /usr/local/jamf/bin/lib i think, if that doesn’t work, try going up one folder and use the same command there.

👤mika

0👍

sudo npm install -g @vue/cli --unsafe-perm

See this vue-cli issue on GitHub

👤Yuci

Leave a comment