“npm install& bower install”

时间:2016-01-27 12:43:47

标签: npm jhipster

安装完成后,新的jhipster项目出现在这里错误: enter image description here

是日志文件npm-debug.log:

1891 verbose stack     at Request.emit (events.js:185:7)
1891 verbose stack     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1082:10)
1891 verbose stack     at emitOne (events.js:95:20)
1891 verbose stack     at Request.emit (events.js:182:7)
1891 verbose stack     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1009:12)
1892 verbose cwd D:\projects\jproject
1893 error Windows_NT 6.1.7601
1894 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
1895 error node v5.5.0
1896 error npm  v3.3.12
1897 error Unexpected end of input
1897 error {"_id":"karma","_rev":"632-143ecb8b5235e3c97cf3d4b359599b72","name":"karma","description":"Spectacular Test Runner for JavaScript.","dist-tags":{"latest":"0.13.19"},"versions":{"0.8.0":{"name":"karma","description":"Spectacular Test Runner for JavaScript.","homepage":"http://karma-runner.github.com/","bugs":{"url":"https://github.com/karma-runner/karma/issues"},"keywords":["karma","spectacular","runner","testacular","js","javascript","testing","test","...
.8.4"},"peerDependencies":{"karma-jasmine":"*","karma-requirejs":"*","karma-coffee-preprocessor":"*","karma-html2js-preprocessor":"*","karma-chrome-launcher":"*","karma-firefox-launcher":"*","karma-phantomjs-launcher":"*","karma-script-launcher":"*"},"devDependencies":{"grunt":"~0.4","grunt-simple-mocha":"git://github.com/yaymukund/grunt-simple-mocha.git","grunt-contrib-jshint":"~0.3","grunt-coffeelint":"~0.0.6","grunt-npm":"~0.0.1","grunt-bump":"~0.0.
1898 error If you need help, you may report this error at:
1898 error     <https://github.com/npm/npm/issues>
1899 verbose exit [ 1, true ]

帮我解释为什么会出现这个错误?

1 个答案:

答案 0 :(得分:0)

documentation中所述,您必须在安装JHipster之前安装Grunt。

如果您不知道如何执行此操作,我们还会提供已安装的Vagrant框。