2015-12-25 63 views
0

確定,所以當每一次做了一些語義安裝時,我嘗試一些我得到的錯誤語義UI/NPM問題/一飲而盡安裝

NPM安裝-g一飲而盡

npm ERR! error rolling back Error: EACCES, unlink '/usr/local/bin/gulp' 
npm ERR! error rolling back [email protected] { [Error: EACCES, unlink '/usr/local/bin/gulp'] errno: 3, code: 'EACCES', path: '/usr/local/bin/gulp' } 
npm ERR! Error: EACCES, unlink '/usr/local/bin/gulp' 
npm ERR! { [Error: EACCES, unlink '/usr/local/bin/gulp'] errno: 3, code: 'EACCES', path: '/usr/local/bin/gulp' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

npm ERR! System Linux 4.2.0-22-generic 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "gulp" 
npm ERR! cwd /home/kristjan 
npm ERR! node -v v0.10.25 
npm ERR! npm -v 1.4.21 
npm ERR! path /usr/local/bin/gulp 
npm ERR! code EACCES 
npm ERR! errno 3 
npm ERR! stack Error: EACCES, unlink '/usr/local/bin/gulp' 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/kristjan/npm-debug.log 
npm ERR! not ok code 0 

然後用根用戶我得到這個

npm WARN deprecated [email protected]: [email protected]<2.0.0 is no longer maintained. Upgrade to [email protected]^3.0.0 
/usr/local/bin/gulp -> /usr/local/lib/node_modules/gulp/bin/gulp.js 
[email protected] /usr/local/lib/node_modules/gulp 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) 
├── [email protected] ([email protected], [email protected], [email protected]) 
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) 
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 

那麼,即時通訊問你可以指導如何讓我的電腦語義?它註定我離開了我..

回答

0

不知道爲什麼你需要以root身份運行gulp。以下是如何可以安裝語義UI:從Github

  • CD

    1. 下載語義UI的zip包,你必須dist/src/文件夾
    2. 運行npm installSemantic-UI-master文件夾 - 這將安裝杯和所有其他依賴列在package.json文件中。
    3. 你會被問到與步驟來繼續這是不言自明的。所有編譯的CSS和JS將進入dist/文件夾。