【发布时间】:2014-03-30 14:33:53
【问题描述】:
我是第一次在 windows 上使用 grunt 并使用 grunt 0.3 版本。 我安装了 nodejs、npm,然后使用 ->
安装了 grunt 0.3 npm install -g grunt@0.3.0 --save-dev
在 windows 中尝试 grunt build 时出现错误 Microsoft jquery 运行时错误,需要对象。
然后我发现在 Windows 中grunt build 不起作用,所以我使用了grunt.cmd。
它看起来更好,因为我没有得到 jquery 异常,但现在我得到以下错误并且仍然无法构建 -
path.existsSync is now called `fs.existsSync`.
>> Npm module "grunt-css" not found. Is it installed?
>> Npm module "grunt-jasmine-runner" not found. Is it installed?
>> Npm module "grunt-contrib-copy" not found. Is it installed?
>> Npm module "grunt-dustjs" not found. Is it installed?
>> Npm module "grunt-contrib-less" not found. Is it installed?
Running "docs:dist" (docs) task
python ./libs/atnotate/atnotate.py -s ./src/ -d ./docs/ -t ./libs/atnotate/templates
<WARN> Task "dustjs" not found. Use --force to continue. </WARN>
Aborted due to warnings.
非常感谢您提供的任何帮助。
谢谢
在凯文的解决方案之后更新,我有所有文件但仍然找不到 grunt-css -
ls -l /usr/local/lib/node_modules/
drwxr-xr-x 14 nobody wheel 476 Feb 28 15:02 grunt
drwxr-xr-x 14 nobody staff 476 Feb 28 14:37 grunt-contrib-copy
drwxr-xr-x 14 nobody staff 476 Feb 28 14:38 grunt-contrib-less
drwxr-xr-x 11 nobody wheel 374 Feb 28 15:19 grunt-css
drwxr-xr-x 10 nobody wheel 340 Feb 28 15:18 grunt-dustjs
drwxr-xr-x 17 nobody staff 578 Feb 28 14:38 grunt-jasmine-runner
drwxr-xr-x 21 24561 staff 714 Feb 28 14:04 npm
# grunt build
path.existsSync is now called `fs.existsSync`.
>> Npm module "grunt-css" not found. Is it installed?
<WARN> Task "cssmin" not found. Use --force to continue. </WARN>
Aborted due to warnings.
【问题讨论】:
标签: windows node.js gruntjs npm