关于angularjs:如何安装Blur Admin?

How to install Blur Admin?

我一直试图通过(git clone https://github.com/akveo/blur-admin.git)安装blur-admin。 但是,当我按照安装指南中所述从git bash安装它时,显示以下错误:

bower ECONFLICT Unable to
find suitable version for angular

npm ERR! Windows_NT 6.3.9600

npm ERR! argv"C:\\Program Files\
odejs\
ode.exe""C:\\Program
Files\
odejs\
ode_modules\
pm\\bin\
pm-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\
pm-debug.log


问题是因为Windows计算机中未安装Bower。
在安装此AngularJs模板之前,请尝试安装bower。

使用以下命令来安装bower:

1
npm install -g bower

还要检查是否安装了Gulp-任务自动化工具。

使用以下命令进行安装:

1
npm install -g gulp

现在使用npm install安装项目及其程序包依赖关系。

要运行该应用程序:

1
gulp serve

问题出在Bower,因为Bower没有安装到系统中。

首先按照以下步骤安装凉亭:

1
npm install -g bower

然后通过以下方式运行该应用程序:

1
gulp serve

第一

1
npm i -g npm

然后删除node_modules中的所有内容。当这些被删除时,cd到您的目录并

1
npm install

为我工作。如果您使用的是OSX或Linux,请使用sudo。

如果您使用的是Windows,请确保以管理员身份运行。


对不起,我迟到了。
您是否尝试将/bower_components/文件夹从/client/目录移动到您的根项目目录?那对我有用。