npm ERR! path /usr/local/bin/code
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/bin/code'
npm ERR! { Error: EACCES: permission denied, access '/usr/local/bin/code'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/bin/code' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/c2cdev/.npm/_logs/2023-08-30T11_12_13_139Z-debug.log
You might get the above error in the Terminal when you try to uninstall VS Code using npm command.
Fix: As you can see in the error logs, it says please try again with root/Administrator, so try to run the same command with sudo.
sudo npm uninstall -g code

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!