服务器上npm install时候报错Error: EACCES: permission denied, #8282
Unanswered
s464446877
asked this question in
Q&A
Replies: 1 comment
|
试试构建前升级一下 npm : npm install -g npm |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
internal/fs/utils.js:314
throw err;
^
Error: EACCES: permission denied, mkdir '/app/jenkins/workspace/pro_front_increate_knowledge/node_modules/@umijs/bundler-vite/node_modules'
at Object.mkdirSync (fs.js:1009:3)
at Object. (/app/jenkins/workspace/pro_front_increate_knowledge/node_modules/@umijs/bundler-vite/scripts/linkDeps.js:14:6)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path: '/app/jenkins/workspace/pro_front_increate_knowledge/node_modules/@umijs/bundler-vite/node_modules'
}
请问各位大佬,npm install的时候一直报这个错误,npm版本6.14.3,本地电脑正常,服务器上构建的时候出现这个错误
All reactions