The error content is similar to the following format. See here for specific solutions: https://github.com/Microsoft/WSL/issues/14
Focus on https://github.com/Microsoft/WSL/issues/14#issuecomment -207504657 and https://github.com/Microsoft/WSL/issues/14#issuecomment -514342783
The previous articles recording this kind of stepping on the pit are purely to stick the solution of the original text. If there is no original content in the future, directly post links and error tips to facilitate visiting readers
➜ * git:(master) ✗ npm install
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /home/*/Project/*/node_modules/array-sort
npm ERR! dest /home/*/Project/*/node_modules/.array-sort.DELETE
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/home/*/Project/*/node_modules/array-sort' -> '/home/*/Project/*/node_modules/.array-sort.DELETE'
npm ERR! [OperationalError: EACCES: permission denied, rename '/home/*/Project/*/node_modules/array-sort' -> '/home/*/Project/*/node_modules/.array-sort.DELETE'] {
npm ERR! cause: [Error: EACCES: permission denied, rename '/home/*/Project/*/node_modules/array-sort' -> '/home/*/Project/*/node_modules/.array-sort.DELETE'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rename',
npm ERR! path: '/home/*/Project/*/node_modules/array-sort',
npm ERR! dest: '/home/*/Project/*/node_modules/.array-sort.DELETE'
npm ERR! },
npm ERR! stack: "Error: EACCES: permission denied, rename '/home/*/Project/*/node_modules/array-sort' -> '/home/*/Project/*/node_modules/.array-sort.DELETE'",
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rename',
npm ERR! path: '/home/*/Project/*/node_modules/array-sort',
npm ERR! dest: '/home/*/Project/*/node_modules/.array-sort.DELETE',
npm ERR! parent: 'MyIP'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/*/.npm/_logs/2019-12-24T05_53_16_578Z-debug.log
Similar Posts:
- Mac: How to Solve global module install error
- [Solved] WARN checkPermissions Missing write access to /usr/local/lib/node_modules
- npm install: npm ERR! errno -4048, Error: EPERM: operation not permitted[How to Solve]
- NPM install socket.io[UNK][UNK] error: [UNK](npm WARN enoent ENOENT: no such file or directory, open ‘/usr/local/no…
- Root permission NPM global installation (- G) will still have insufficient permissions. Please know the parameter unsafe perm
- error [email protected]: The engine “node” is incompatible with this module.
- Ionic Error: Failed to load resource [How to Solve]
- Mac download wepy error reporting solution
- How to Solve ReferenceError: internalBinding is not defined
- [Solved] NPM installation error: error: eacces: permission denied