npm報錯error code EPERM, error syscall unlink,errno -4048解決

安裝報錯信息

24741 error code EPERM
24742 error syscall unlink
24743 error path E:\workspaces\multiplatform\node_modules\.staging\regexpp-c7c47c68\index.js.map
24744 error errno -4048
24745 error Error: EPERM: operation not permitted, unlink 'E:\workspaces\multiplatform\node_modules\.staging\regexpp-c7c47c68\index.js.map'
24745 error  [OperationalError: EPERM: operation not permitted, unlink 'E:\workspaces\multiplatform\node_modules\.staging\regexpp-c7c47c68\index.js.map'] {
24745 error   cause: [Error: EPERM: operation not permitted, unlink 'E:\workspaces\multiplatform\node_modules\.staging\regexpp-c7c47c68\index.js.map'] {
24745 error     errno: -4048,
24745 error     code: 'EPERM',
24745 error     syscall: 'unlink',
24745 error     path: 'E:\\workspaces\\multiplatform\\node_modules\\.staging\\regexpp-c7c47c68\\index.js.map'
24745 error   },
24745 error   stack: "Error: EPERM: operation not permitted, unlink 'E:\\workspaces\\multiplatform\\node_modules\\.staging\\regexpp-c7c47c68\\index.js.map'",
24745 error   errno: -4048,
24745 error   code: 'EPERM',
24745 error   syscall: 'unlink',
24745 error   path: 'E:\\workspaces\\multiplatform\\node_modules\\.staging\\regexpp-c7c47c68\\index.js.map',
24745 error   parent: 'prettier-eslint' 
24745 error }
24746 error The operation was rejected by your operating system.
24746 error It's possible that the file was already in use (by a text editor or antivirus),
24746 error or that you lack permissions to access it.
24746 error
24746 error If you believe this might be a permissions issue, please double-check the
24746 error permissions of the file and its containing directories, or try running
24746 error the command again as root/Administrator.
24747 verbose exit [ -4048, true ]

試了了好多辦法,都沒有解決。還是這個問題。最後一個大招,問題解決了

開始菜單——》命令行——》管理員身份運行

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章