Scenario: on the Mac, if you want to use the code command to open vs code, (CMD + Shift + P) search the shell, find this:
Results Click to find:
Error: EACCES: permission denied,
unlink '/usr/local/bin/code'
In fact, I don’t have read-write permission, and it’s ineffective to search a lot on the Internet. However, I’m used to using the command line to open vs code. The final solution is:
Enter at the command line
sudo chown -R [yourusername] [filePath]
Yourusername: user preferences – & gt; Users and groups – & gt; Current user
filepath: the path displayed when an error is reported
Tips: if not, try to move the path forward. Take me as an example:
sudo chown -R xxx /usr/local/bin
Read More:
- [Solved] error:getaddrinfo ENOTFOUND xxx.xxxx.com xxx.xxxx.com:443
- [How to Solve] Too many authentication failures for xxxx_username
- [Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.
- [Solved] E xx: xxxx:xx ERR thread 0x536753929472 setscheduler failed Operation not permitted
- [Solved] Failed to connect to 127.0.0.1 port XXXX: Connection refused
- [Solved] npm install Error: Error: EACCES: permission denied
- nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- [Solved] WSL Ubuntu error: Access folder permission denied
- [Solved] git error – remote: http basic: access denied
- Git Error: remote: HTTP Basic: Access denied [How to Solve]
- Linux: How to Solve sudo operate Error
- [Solved] Ubuntu tab Error: _complete:96: bad math expression: operand expected at end of string
- Hadoop 3.2.0 idea development environment construction and HDFS read write API operation
- net::ERR_HTTP2_PROTOCOL_ERROR 200 [How to Solve]
- [Solved] ubuntu Boot Error: /dev/nume0n1p2:clean
- The resolution of Ubuntu 16.04 screen can’t be modified and the solution of circulating login
- [Solved] gawk: error while loading shared libraries: libreadline.so.4
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- Mac opens Terminal and reports an error -bash:: command not found
- Linux accesses the shared directory of windows, pysmb (parameter remote)_Name (defined)