构建角叉失败

时间:2016-01-12 16:28:13

标签: javascript angularjs gruntjs npm

我创建了一个angularJs的分支,我正在尝试构建它。不幸的是,当我运行grunt package

时,这会失败

npm -v - > 3.5.2

bower --version - > 1.7.2

我按照Documentation建立了角度:

$ npm install
$ bower install
$ grunt package

但是我收到了这个错误:

grunt-cli: The grunt command line interface. (v0.1.13)

Fatal error: Unable to find local grunt.

If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started

我忘记了什么吗?

1 个答案:

答案 0 :(得分:1)

显然它与npm 3.5.4有一些共同点,因为我在这个版本中遇到了缓存错误。

但是在降级到npm 2.x后,一切都运转良好。