Note that there are some explanatory texts on larger screens.

plurals
  1. POYeoman for Angular, then "grunt serve" won't start
    primarykey
    data
    text
    <p>This is the first time I use yeoman to setup the scaffolding for an AngularJS app, and I have to admit I am likely new to the nodeJS, grunt and bower world.</p> <p>So, here's what I've done so far:</p> <ul> <li><p>I made sure yeoman, grunt-cli and the angular-generator packages are installed</p> <pre><code>npm install -g yo grunt-cli bower npm install -g generator-angular </code></pre></li> <li><p>Generated my app</p> <pre><code>yo angular </code></pre> <p>I also tried:</p> <pre><code>yo angular --min-safe </code></pre></li> </ul> <p>So far, al seems good. Between the options given, I choose the Twitter Bootstrap one, no angular dependencies, and to overwrite my local .gitignore file.</p> <p>After all that, I try to run my app:</p> <pre><code>grunt serve </code></pre> <p>At this point, grunt complains that it is not locally installed into the project, so I run:</p> <pre><code>npm install grunt --save-dev </code></pre> <p>No again, trying to run the app:</p> <pre><code>grunt serve </code></pre> <p>And this is where I get blocked:</p> <pre><code>C:\Projects\what-now&gt;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 ... </code></pre> <p>Looking at the code that blows up in compass' compile method, what I find is the following:</p> <pre><code>child.stdout.pipe(process.stdout); </code></pre> <p>This makes me think that <code>child</code> is undefined for some reason, and this variable comes from a call to <code>grunt.util.spawn</code>. This is where I am at a loss.</p> <p>Am I missing any dependency? Am I missing any configuration?</p> <p><em>Info:</em></p> <ul> <li>OS: Windows 8 x64</li> <li>node: v0.10.22</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload