Solution of “NPM err! Error: eperm: operation not permitted”
Error occurred when NPM running Vue cli to create project under Windows system
npm ERR! Windows_ NT 10.0.14393
npm ERR! argv “C:\\Program Files\\nodejs\\ node.exe ” “C:\\Program Files\\nodejs\\node_ modules\\npm\\bin\\npm- cli.js ” “uninstall” “express” “-g”
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! path C:\Program Files\nodejs\node_ cache\_ locks
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall mkdir
npm ERR! Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs\node_ cache\_ locks’
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs\node_ cache\_ locks’
npm ERR! at Error (native)
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘mkdir’,
npm ERR! path: ‘C:\\Program Files\\nodejs\\node_ cache\\_ locks’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\admin\npm- debug.log
The key point is: operation not permitted.
Solution: use Win + X, select the command prompt (administrator), and run the command in it.
Read More:
- npm ERR Error: EPERM:operation not permitted, rename
- npm ERR! Error: EPERM: operation not permitted, open ‘C:\Program Files\nodejs\node_ Solution to cache / xxx
- NPM install Error: EPERM: operation not permitted, mkdir solution
- NPM report error: eperm: operation not permitted, unlink… Solution and clear cache_ modules
- [Vue] install vuex, error: eperm: operation not permitted, rename
- Error: EPERM: operation not permitted, mkdir ‘D:\nodejs\node_modules\npm\node_cache\_npx‘
- EPERM: operation not permitted, symlink ‘../../’
- java.net.SocketException: socket failed: EPERM (Operation not permitted)
- npm ERR! Error: CERT_ Untrusted problem solving
- ADB remount failed: operation not permitted
- Docker CentOS Failed to get D-Bus connection: Operation not permitted
- linux docker Error Failed to get D-Bus connection: Operation not permitted
- docker service Failed to get D-Bus connection: Operation not permitted
- AVD FFmpeg avcodec_ A solution of open2 returning – 1 (operation not permitted)
- Android 9.0 error: net:ERR_ CLEARTEXT_ NOT_ Permitted solution
- Failed to load resource: net::ERR_ INSECURE_ Response problem solving record
- Problem solving: failed to connect to github.com port 443: Operation timed out(2020.06.04)
- NPM run serve reported an error “NPM err! Missing script: start”
- NPM ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
- Solution of NPM err! Code elifecycle