这是我第一次使用约曼为AngularJS应用程序搭建脚手架,我不得不承认我可能是nodeJS,咕噜和保龄球世界的新手。
所以,我到目前为止所做的是:
到目前为止,艾尔看上去不错。在给定的选项之间,我选择Twitter,没有角度依赖项,并覆盖我的本地.gitignore文件。
在这之后,我试着运行我的应用程序:
grunt serve此时,grunt抱怨它没有在本地安装到项目中,因此我运行:
npm install grunt --save-dev不,再试着运行应用程序:
grunt serve这就是我被封锁的地方:
C:\Projects\what-now>grunt serve
Running "serve" task
Running "clean:server" (clean) task
Running "concurrent:server" (concurrent) task
Running "copy:styles" (copy) task
Done, without errors.
Warning:
C:\Projects\what-now\node_modules\grunt-contrib-compass\node_modules\tmp\lib\tmp.js:261
throw err;
^
TypeError: Cannot read property 'stdout' of undefined
at compile (C:\Projects\what-now\node_modules\grunt-contrib-compass\tasks\compass.js:37:10)
at C:\Projects\what-now\node_modules\grunt-contrib-compass\tasks\compass.js:68:7
at C:\Projects\what-now\node_modules\grunt-contrib-compass\tasks\lib\compass.js:121:11
at _fileCreated (C:\Projects\what-now\node_modules\grunt-contrib-compass\node_modules\tmp\lib\tmp.js:172:7)
at C:\Projects\what-now\node_modules\grunt-google-cdn\node_modules\bower\node_modules\rimraf\node_modules\graceful-fs\graceful-fs.js:53:5
at C:\Projects\what-now\node_modules\grunt-google-cdn\node_modules\bower\node_modules\rimraf\node_modules\graceful-fs\graceful-fs.js:62:5
at OpenReq.Req.done (C:\Projects\what-now\node_modules\grunt-google-cdn\node_modules\bower\node_modules\fstream\node_modules\graceful-fs\graceful-fs.js:142:5)
at OpenReq.done (C:\Projects\what-now\node_modules\grunt-google-cdn\node_modules\bower\node_modules\fstream\node_modules\graceful-fs\graceful-fs.js:64:22)
//... stack trace continues ...看看罗盘编译方法中的代码,我发现如下所示:
child.stdout.pipe(process.stdout);这使我认为child是由于某种原因而没有定义的,并且这个变量来自对grunt.util.spawn的调用。这就是我不知所措的地方。
我失去了什么依赖吗?我错过任何配置了吗?
信息:
发布于 2013-11-25 04:30:17
*叹气*对不起。
我只需要写这个问题就知道我需要安装Ruby和指南针宝石。现在,这是有意义的:编译过程不会产生。
安装Ruby之后,运行:
gem install compass你应该可以走了。
编辑:安装后,需要确保Ruby运行时文件的路径被添加到path变量中。(谢谢JagWire!)
发布于 2013-12-03 22:16:27
我在窗户上放了几批红宝石:
C:\ruby187和
C:\Ruby200-x64在两处安装指南针,使用:
gem install compass这解决了我在windows 8 64位上的问题。
发布于 2014-06-02 05:41:30
按照相同的程序对安博,运行咕哝。收到错误"TypeError:无法读取属性'stdout‘的未定义。“宝石安装指南针(红宝石已经安装在我的windows 7 64位),即使指南针应该安装在更早,这是可行的。跑,咕哝,咕噜发球,没有问题。
https://stackoverflow.com/questions/20184702
复制相似问题