brunch/brunch — Issue #185: Error when creating new app
Author: overture8
Created: 2012-01-22 20:39:37+00:00
State: open

Just started to get this error when creating a new app:

~% brunch new blah
[20:37:05]: [Brunch]: created brunch directory layout
[20:37:05]: [Brunch]: installing npm packages...
[20:37:11]: [Brunch]: npm error: Error: Command failed: npm http GET https://registry.npmjs.org/brunch-extensions/0.1.0
npm http 304 https://registry.npmjs.org/brunch-extensions/0.1.0
npm http GET https://registry.npmjs.org/async/0.1.15
npm http GET https://registry.npmjs.org/mkdirp/0.2.1
npm http GET https://registry.npmjs.org/coffee-script/1.2.0
npm http GET https://registry.npmjs.org/roy/0.1.3
npm http GET https://registry.npmjs.org/eco/1.0.3
npm http GET https://registry.npmjs.org/jade/0.19.0
npm http GET https://registry.npmjs.org/stylus/0.21.2
npm http GET https://registry.npmjs.org/less/1.1.6
npm http 304 https://registry.npmjs.org/eco/1.0.3
npm http 304 https://registry.npmjs.org/async/0.1.15
npm http 304 https://registry.npmjs.org/coffee-script/1.2.0
npm http 304 https://registry.npmjs.org/mkdirp/0.2.1
npm http 304 https://registry.npmjs.org/roy/0.1.3
npm http 304 https://registry.npmjs.org/less/1.1.6
npm http 304 https://registry.npmjs.org/jade/0.19.0
npm http 304 https://registry.npmjs.org/stylus/0.21.2
npm http GET https://registry.npmjs.org/strscan
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/jison
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/cssom/0.2.0
npm http GET https://registry.npmjs.org/growl/1.1.0
npm http GET https://registry.npmjs.org/mkdirp/0.0.7
npm http 304 https://registry.npmjs.org/strscan
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/jison
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/cssom/0.2.0
npm http GET https://registry.npmjs.org/JSONSelect
npm http GET https://registry.npmjs.org/reflect
npm http GET https://registry.npmjs.org/nomnom/0.4.3
npm http 304 https://registry.npmjs.org/growl/1.1.0
npm http 304 https://registry.npmjs.org/mkdirp/0.0.7
npm http 304 https://registry.npmjs.org/JSONSelect
npm http 304 https://registry.npmjs.org/nomnom/0.4.3
npm http 304 https://registry.npmjs.org/reflect
npm WARN reflect@0.0.1 package.json: 'modules' object is deprecated
The "sys" module is now called "util". It should have a similar interface.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot call method 'match' of undefined
at typal_constructor.parser_generate [as generate] (/Users/philmcclure/blah/node_modules/brunch-extensions/node_modules/roy/node_modules/jison/lib/jison.js:878:25)
at Object. (/Users/philmcclure/blah/node_modules/brunch-extensions/node_modules/roy/src/grammar.js:213:38)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
npm ERR! error installing roy@0.1.3
npm ERR! error installing brunch-extensions@0.1.0

npm ERR! roy@0.1.3 install: `node src/grammar.js`
npm ERR! `sh "-c" "node src/grammar.js"` failed with 1
npm ERR!
npm ERR! Failed at the roy@0.1.3 install script.
npm ERR! This is most likely a problem with the roy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node src/grammar.js
npm ERR! You can get their info via:
npm ERR! npm owner ls roy
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/philmcclure/blah
npm ERR! node -v v0.6.7
npm ERR! npm -v 1.1.0-2
npm ERR! code ELIFECYCLE
npm ERR! message roy@0.1.3 install: `node src/grammar.js`
npm ERR! message `sh "-c" "node src/grammar.js"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/philmcclure/blah/npm-debug.log
npm not ok

[20:37:11]: [Brunch]: couldn't load config.coffee. Error: Cannot find module 'brunch-extensions'