我必须使用angularjs主题。
为此,我从以下URL下载源代码:
https://startangular.com/product/flatlogic-angular-material-dashboard/
执行安装步骤
install node-v6.9.2-x64.msi
E:\angular-material-dashboard-master>npm install
它出现以下错误
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! angular-material-dashboard@1.3.0 install: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-material-dashboard@1.3.0 install script 'bower install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-material-dashboard 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 angular-material-dashboard
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-material-dashboard
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:\angular-material-dashboard-master\npm-debug.log
对于上述错误,我尝试运行以下命令
E:\angular-material-dashboard-master>npm install bower
它提供以下输出
E:\angular-material-dashboard-master>npm install bower
angular-material-dashboard@1.3.0 E:\angular-material-dashboard-master
+-- bower@1.8.0
+-- UNMET PEER DEPENDENCY jasmine-core@*
`-- UNMET PEER DEPENDENCY karma@>=0.10 <=0.13
npm WARN gulp-karma@0.0.5 requires a peer of karma@>=0.10 <=0.13 but none was installed.
npm WARN karma-jasmine@0.3.8 requires a peer of jasmine-core@* but none was installed.
npm WARN karma-phantomjs-launcher@0.1.4 requires a peer of karma@>=0.9 but none was installed.
npm WARN angular-material-dashboard@1.3.0 No repository field.
npm WARN angular-material-dashboard@1.3.0 No license field.
再次运行以下错误
E:\angular-material-dashboard-master>npm install
它给出了同样的错误。
我使用的是Windows 10和node-v6.9.2。