我需要執行沒有須藤 NPM安裝命令,但我在我的詹金斯工作這個錯誤,當我試圖執行此命令 這是錯誤控制檯消息:詹金斯:NPM安裝失敗沒有sudo
+ npm install
npm WARN [email protected] requires a peer of [email protected]>=1.0.1 but none was installed.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! Linux 3.13.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.1.0
npm ERR! npm v4.0.2
npm ERR! path /var/lib/jenkins/workspace/mmm/node_modules/.staging
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/var/lib/jenkins/workspace/Site_SiFAST_-_Intégration_Continue/node_modules/.staging'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, mkdir '/var/lib/jenkins/workspace/Site_SiFAST_-_Intégration_Continue/node_modules/.staging']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/var/lib/jenkins/workspace/Site_SiFAST_-_Intégration_Continue/node_modules/.staging' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
任何人khow如何執行這個命令沒有sudo?
你見過這樣的https://文檔.npmjs.com /工具入門/固定新公共管理的權限 –