我是一名初學者,我正在嘗試學習Angular,所以我正在嘗試使用angular-seed安裝一個新項目。但是,當我做npm安裝時,我得到一個錯誤,我不知道從哪裏來。我安裝了節點。版本是5.5.0。廣告這是我在控制檯中得到的錯誤。npm install時出錯
npm verb install Error: Unsupported npm verb install at checkPlatform (/usr/lib/node_modules/npm/node_modules/npm-install-checks/index.js:46:14) npm verb install at Array. (/usr/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8) npm verb install at LOOP (/usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14) npm verb install at /usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7 npm verb install at checkEngine (/usr/lib/node_modules/npm/node_modules/npm-install-checks/index.js:25:10) npm verb install at Array. (/usr/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8) npm verb install at LOOP (/usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14) npm verb install at chain (/usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5) npm verb install at module.exports.isInstallable (/usr/lib/node_modules/npm/lib/install/validate-args.js:26:3) npm verb install at resolveWithNewModule (/usr/lib/node_modules/npm/lib/install/deps.js:452:12) npm verb lock using /home/david/.npm/_locks/staging-7c9a6a9e85daffeb.lock for /home/david/DiabetesApp/angular-seed/node_modules/.staging npm verb unlock done using /home/david/.npm/_locks/staging-7c9a6a9e85daffeb.lock for /home/david/DiabetesApp/angular-seed/node_modules/.staging npm verb stack Error: EACCES: permission denied, mkdir '/home/david/DiabetesApp/angular-seed/node_modules/.staging' npm verb stack at Error (native) npm verb cwd /home/david/DiabetesApp/angular-seed npm ERR! Linux 3.13.0-76-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--verbose" npm ERR! node v5.5.0 npm ERR! npm v3.3.12 npm ERR! path /home/david/DiabetesApp/angular-seed/node_modules/.staging npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall mkdir npm ERR! Error: EACCES: permission denied, mkdir '/home/david/DiabetesApp/angular-seed/node_modules/.staging' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, mkdir '/home/david/DiabetesApp/angular-seed/node_modules/.staging'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/home/david/DiabetesApp/angular-seed/node_modules/.staging' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm verb exit [ -13, true ] npm ERR! Please include the following file with any support request: npm ERR! /home/david/DiabetesApp/angular-seed/npm-debug.log
使用sudo的NPM安裝 – Vanojx1