报错信息:stack Error: EACCES: permission denied, mkdir '/root/.jenkins/workspace/Acl-bound-Project-AwsProd/node_modules/node-sass/.node-gyp'

[root@manage-host Acl-bound-Project-AwsProd]# mkdir ~/npm-global
您在 /var/spool/mail/root 中有新邮件
[root@manage-host Acl-bound-Project-AwsProd]# mkdir ~/.npm-global
[root@manage-host Acl-bound-Project-AwsProd]# rm -rf ~/npm-global
[root@manage-host Acl-bound-Project-AwsProd]# npm config set prefix '~/.npm-global'
[root@manage-host Acl-bound-Project-AwsProd]# source /etc/profile
[root@manage-host Acl-bound-Project-AwsProd]# npm install -g jshint
/root/.npm-global/bin/jshint -> /root/.npm-global/lib/node_modules/jshint/bin/jshint
+ jshint@2.12.0
added 31 packages from 15 contributors in 256.702s
[root@manage-host Acl-bound-Project-AwsProd]# npm install
npm WARN script-ext-html-webpack-plugin@2.0.1 requires a peer of html-webpack-plugin@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN aclchain@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

audited 1481 packages in 8.57s
found 2 vulnerabilities (1 moderate, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

 

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐