Answers for "npm ERR! Error: EACCES: permission denied, unlink '/usr/bin/npm'"

5

npm EACCES: permission denied, access '/usr/local/lib'

sudo chown -R $(whoami) ~/.npm

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
Posted by: Guest on September-12-2020
1

EACCES: permission denied, unlink '/usr/local/bin/code

(Mac) 
1. Try uninstalling and reinstalling. (command + shift + p) >shell Command: Uninstall 'code' command from Path 
2.  append the following to your ~/.bash_profile file (~/.zshrc in case you use zsh).
	code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
Posted by: Guest on August-11-2021

Code answers related to "npm ERR! Error: EACCES: permission denied, unlink '/usr/bin/npm'"

Browse Popular Code Answers by Language