2016-06-09 70 views
0

我一直試圖通過(git clone https://github.com/akveo/blur-admin.git)安裝blur-admin。但是,當我從混帳bash的安裝,如安裝指南中提到它顯示了以下錯誤:如何安裝模糊管理?

bower ECONFLICT Unable to find suitable version for angular

npm ERR! Windows_NT 6.3.9600

npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"

npm ERR! node v4.4.5

npm ERR! npm v2.15.5

npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: bower install npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script 'bower install'.

npm ERR! This is most likely a problem with the blur_admin package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! bower install

npm ERR! You can get information on how to open an issue for this project with:

npm ERR! npm bugs blur_admin

npm ERR! Or if that isn't available, you can get their info via:

npm ERR! npm ERR! npm owner ls blur_admin

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR! C:\xampp\htdocs\blur-admin\npm-debug.log

回答

0

對不起我有點晚。 您是否嘗試將/bower_components/文件夾從/client/目錄移動到您的根項目目錄?這對我有效。

0

首先

npm i -g npm 

然後刪除node_modules一切。當這些被刪除,cd到您的目錄和

npm install 

爲我工作。如果您在OSX或Linux上,請使用sudo。

如果您在Windows上,請確保您以管理員身份運行。

1

問題是因爲Bower沒有安裝在您的Windows機器上。 嘗試在安裝此AngularJs模板之前安裝涼亭。

使用下面的命令來安裝涼亭:

npm install -g bower 

同時檢查咕嘟咕嘟 - 任務自動化工具安裝或不安裝。

使用下面的命令來安裝相同的:

npm install -g gulp 

現在使用npm install安裝項目和它的程序包相關。

運行應用:

gulp serve 
1

的問題是從鮑爾,如鮑爾並沒有安裝到系統中。

請先按照安裝涼亭:

gulp serve 

npm install -g bower 

然後通過運行應用程序