Grunt在Windows中服务,怎么样?

时间:2014-11-18 13:16:32

标签: windows node.js gruntjs

我必须打开在Windows XP上运行的第二台计算机。

我从存储库中克隆了我的项目,该存储库具有结构containtng bower.jcon,Gruntfile.js和其他后续文件,并且在使用MacOS X的第二台计算机上运行没有问题。

之后我启动了NodeJS命令promtp,移动到了应用程序被克隆的目录,我启动了命令。

C:\workspace\myproject>grunt serve

我收到以下错误消息:

Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'load-grunt-tasks'
Warning: Task "serve" not found. Use --force to continue.

我做错了什么,我该如何解决这个问题呢?

非常感谢您的帮助。

修改

我使用以下命令解决了它:

npm update npm -g
npm install
bower install
grunt serve

0 个答案:

没有答案