scotch / angular-brunch-seed

AngularJS + Brunch
Other
228 stars 78 forks source link

static-jade-brunch broken? #46

Closed vivainio closed 10 years ago

vivainio commented 11 years ago

I get an error when trying to run brunch:

ville@ville-tp:/o/p/ahpcli-web$ brunch watch --server
22 Feb 13:45:59 - error: { [Error: Cannot find module '/o/p/ahpcli-web/node_modules/static-jade-brunch'] code: 'MODULE_NOT_FOUND' }

npm ls output:

sapling-seed@0.1.0 /o/p/ahpcli-web
├─┬ auto-reload-brunch@1.4.0
│ └─┬ ws@0.4.20
│   ├── commander@0.6.1
│   ├── options@0.0.3
│   └── tinycolor@0.0.1
├─┬ brunch@1.4.5
│ ├── ansi-color@0.2.1
│ ├── argumentum@0.6.0
│ ├── async@0.1.22
│ ├── chokidar@0.4.0
│ ├── date-utils@1.2.12
│ ├─┬ express@3.0.6
│ │ ├── buffer-crc32@0.1.1
│ │ ├── commander@0.6.1
│ │ ├─┬ connect@2.7.2
│ │ │ ├── bytes@0.1.0
│ │ │ ├── formidable@1.0.11
│ │ │ ├── pause@0.0.1
│ │ │ └── qs@0.5.1
│ │ ├── cookie@0.0.5
│ │ ├── cookie-signature@0.0.1
│ │ ├── debug@0.7.2
│ │ ├── fresh@0.1.0
│ │ ├── methods@0.0.1
│ │ ├── mkdirp@0.3.3
│ │ ├── range-parser@0.0.4
│ │ └─┬ send@0.1.0
│ │   └── mime@1.2.6
│ ├── growl@1.6.1
│ ├─┬ handlebars@1.0.9
│ │ ├─┬ optimist@0.3.5
│ │ │ └── wordwrap@0.0.2
│ │ └── uglify-js@1.2.6
│ ├── inflection@1.2.5
│ ├── mkdirp@0.3.4
│ ├─┬ mocha@1.4.3
│ │ ├── commander@0.6.1
│ │ ├── debug@0.7.2
│ │ ├── diff@1.0.2
│ │ ├── growl@1.5.1
│ │ ├─┬ jade@0.26.3
│ │ │ └── mkdirp@0.3.0
│ │ ├── mkdirp@0.3.3
│ │ └── ms@0.3.0
│ ├── ncp@0.2.6
│ ├─┬ rimraf@2.0.3
│ │ └── graceful-fs@1.1.14
│ └─┬ walk@2.2.1
│   └─┬ forEachAsync@2.2.0
│     └── sequence@2.2.1
├─┬ clean-css-brunch@1.4.0
│ └─┬ clean-css@0.8.3
│   └─┬ optimist@0.3.5
│     └── wordwrap@0.0.2
├── coffee-script@1.3.3
├── coffee-script-brunch@1.4.1
├─┬ coffeelint-brunch@1.4.4
│ └─┬ coffeelint@0.5.4
│   ├── coffee-script@1.4.0
│   ├─┬ glob@3.1.14
│   │ ├── graceful-fs@1.1.14
│   │ ├── inherits@1.0.0
│   │ └─┬ minimatch@0.2.9
│   │   ├── lru-cache@2.0.4
│   │   └── sigmund@1.0.0
│   ├─┬ optimist@0.3.5
│   │ └── wordwrap@0.0.2
│   └─┬ vows@0.6.4
│     ├── diff@1.0.4
│     └── eyes@0.1.8
├── css-brunch@1.3.0
├─┬ jade@0.28.1
│ ├── coffee-script@1.4.0
│ ├── commander@0.6.1
│ └── mkdirp@0.3.4
├─┬ jade-brunch@1.4.1
│ ├── coffee-script@1.4.0
│ └─┬ jade@0.27.7
│   ├── commander@0.6.1
│   └── mkdirp@0.3.4
├── javascript-brunch@1.3.0
├─┬ less-brunch@1.4.1
│ └─┬ less@1.3.3
│   └── ycssmin@1.0.1
├─┬ static-jade-brunch@1.4.10
│ ├── ansi-color@0.2.1
│ ├── growl@1.6.1
│ └── mkdirp@0.3.4
├─┬ stylus-brunch@1.4.3
│ ├── nib@0.8.2
│ ├─┬ node-sprite@0.1.1
│ │ ├── imagemagick@0.1.2
│ │ ├─┬ seq@0.3.5
│ │ │ ├─┬ chainsaw@0.0.9
│ │ │ │ └── traverse@0.3.9
│ │ │ └─┬ hashish@0.0.4
│ │ │   └── traverse@0.6.3
│ │ ├── underscore@1.3.1
│ │ └── watch@0.5.1
│ └─┬ stylus@0.30.1
│   ├── cssom@0.2.5
│   ├── debug@0.7.2
│   └── mkdirp@0.3.4
├─┬ testacular@0.4.0
│ ├── chokidar@0.5.3
│ ├─┬ glob@3.1.20
│ │ ├── graceful-fs@1.2.0
│ │ └── inherits@1.0.0
│ ├─┬ http-proxy@0.8.7
│ │ ├── colors@0.6.0-1
│ │ └── pkginfo@0.2.3
│ ├─┬ minimatch@0.2.9
│ │ ├── lru-cache@2.0.4
│ │ └── sigmund@1.0.0
│ ├─┬ optimist@0.3.5
│ │ └── wordwrap@0.0.2
│ ├─┬ socket.io@0.9.13
│ │ ├── base64id@0.1.0
│ │ ├── policyfile@0.0.4
│ │ ├── redis@0.7.3
│ │ └─┬ socket.io-client@0.9.11
│ │   ├─┬ active-x-obfuscator@0.0.1
│ │   │ └── zeparser@0.0.5
│ │   ├── uglify-js@1.2.5
│ │   ├─┬ ws@0.4.25
│ │   │ ├── commander@0.6.1
│ │   │ ├── options@0.0.3
│ │   │ └── tinycolor@0.0.1
│ │   └── xmlhttprequest@1.4.2
│ └── xmlbuilder@0.4.2
└─┬ uglify-js-brunch@1.3.1
  └── uglify-js@1.3.2
ilkosta commented 11 years ago

It seems to me that the problem is somewhere else: running ./scripts/server.sh I got the same error but for javascript-brunch and npm v1.2.11. Running npm again I see some errors related to the path of coffee-script module. Running something like

cd node_modules
for module in *
do
  cd $module
  npm install
  cd ..
done

seems to fix the problem.

vivainio commented 11 years ago

I can confirm that your script fixes the problem for me as well.

Still, it may be good to find the cause of the problem before closing this bug.

ilkosta commented 11 years ago

right. I seem to recall that some other user in the past has had the problem and investigating we found that the cause was npm. I'll try to rummage through the issues

happy to find Leo users here and there ;)

kylefinley commented 11 years ago

@vivainio, Thank you for the report. @ilkosta, Thank you for the support. I do remember seeing this problem in the past, also. If I recall correctly moving jade from "devDependencies" to "dependencies" fixed the problem. Somehow it's been switch back though. @vivainio if you wouldn't mind testing this I would love hear if that fixed the problem.

  "devDependencies": {
    ...
    "jade": ">= 0.28",
  }

To:

  "dependencies": {
    ...
    "jade": ">= 0.28"
  }

NOTE: In version 0.2.0 i've switch to jade-angularjs-brunch For the jade to HTML compilation.

jade-angular-brunch works by creating an Angular module named'partials' that adds the HTML string of the partials to the $templateCache. For this to work you must add partials to yours apps required modules list and include the partials.js file in your index.html file.

If you are interested in the compiled HTML view the contents of the _public/js/partials.js file.

That said, I still think that static-jade-brunch is extremely useful, especially for apps that large amounts of html that should be loaded lazily. I'm still investigating the best way to document this so that users know that they have static-jade-brunch as an option. @ilkosta I would love to get your thoughts on this. Maybe all we need is a note in the docs on how to switch to static-jade-brunch.

ilkosta commented 11 years ago

@kylefinley I've not tested jade-angularjs-brunch but the idea seems really good.

I would understand it better before get you a feedback, unfortunately these days I'm busy with other projects.

I don't know whether and to what size of partils.js, the static-jade-brunch can become an attractive option.

In general I would not put any specific reference to static-jade-brunch, it is present as an option in brunch.io plugin list.

I think that the lazy loading is preferable only to manage the deploy/update of single html files, I don't know if it would be useful to debug the application. I have not experienced the use of jade-angularjs-brunch. @GulinSS What do you think about?

If the lazy loading can become useful it would be interesting to add a parameter to ./scripts/init.sh so the user can always switch from a plugin to the other. The ./scripts/init.sh can:

GulinSS commented 11 years ago

@GulinSS What do you think about?

I think lazy loading is not preferable in large applications also because users wants to get feedback as fast as possible, but they can wait for load. My work project uses splash screen for these operations. Users waits only once.

vivainio commented 11 years ago

@kylefinley In current git snapshot, jade is under "dependencies":

 "dependencies": {
    "jade": ">= 0.28",

And again it breaks for me, but for coffee-script-brunch instead static-jade-brunch:

25 Feb 22:03:34 - error: { [Error: Cannot find module '/o/p/angular-brunch-seed/node_modules/coffee-script-brunch'] code: 'MODULE_NOT_FOUND' }
ilkosta commented 11 years ago

@vivainio it seems a problem with the location of coffee-script module. Is it installed globally?

Can you add the log generated by

npm install &> module_install.log
vivainio commented 11 years ago

Yes, I have coffee-script globally installed, but seems like several modules install their own version.

My log follows:

npm http GET https://registry.npmjs.org/brunch
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/coffee-script-brunch
npm http GET https://registry.npmjs.org/coffeelint-brunch
npm http GET https://registry.npmjs.org/jade
npm http GET https://registry.npmjs.org/less-brunch
npm http GET https://registry.npmjs.org/stylus-brunch
npm http GET https://registry.npmjs.org/auto-reload-brunch
npm http GET https://registry.npmjs.org/uglify-js-brunch
npm http GET https://registry.npmjs.org/clean-css-brunch
npm http GET https://registry.npmjs.org/bower-asserts-brunch
npm http GET https://registry.npmjs.org/testacular
npm http GET https://registry.npmjs.org/bower-stylesheet-brunch
npm http GET https://registry.npmjs.org/bower-javascript-brunch
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/jade-angularjs-brunch
npm http 304 https://registry.npmjs.org/coffee-script-brunch
npm http 304 https://registry.npmjs.org/coffeelint-brunch
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/jade
npm http 304 https://registry.npmjs.org/brunch
npm http 304 https://registry.npmjs.org/stylus-brunch
npm http 304 https://registry.npmjs.org/less-brunch
npm http 304 https://registry.npmjs.org/auto-reload-brunch
npm http 304 https://registry.npmjs.org/uglify-js-brunch
npm http 304 https://registry.npmjs.org/clean-css-brunch
npm http 304 https://registry.npmjs.org/bower-stylesheet-brunch
npm http 304 https://registry.npmjs.org/bower-asserts-brunch
npm http 304 https://registry.npmjs.org/testacular
npm http 304 https://registry.npmjs.org/bower-javascript-brunch
npm http 304 https://registry.npmjs.org/bower
npm http 304 https://registry.npmjs.org/jade-angularjs-brunch

> coffee-script-brunch@1.5.0 postinstall /o/p/angular-brunch-seed/node_modules/coffee-script-brunch
> node setup.js postinstall

Executing node node_modules/.bin/coffee -o lib/ src/

module.js:340
    throw err;
          ^
Error: Cannot find module '/o/p/angular-brunch-seed/node_modules/coffee-script-brunch/node_modules/.bin/coffee'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
npm http GET https://registry.npmjs.org/less
npm http GET https://registry.npmjs.org/coffee-script/1.4.0
npm http GET https://registry.npmjs.org/coffee-script/1.3.3
npm http GET https://registry.npmjs.org/file
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/stylus
npm http GET https://registry.npmjs.org/ws/0.4.20
npm http GET https://registry.npmjs.org/jade/0.26.3
npm http GET https://registry.npmjs.org/clean-css
npm http GET https://registry.npmjs.org/coffeelint
npm http GET https://registry.npmjs.org/nib
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/node-sprite/0.1.1
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/tmp
npm http GET https://registry.npmjs.org/vows
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/archy
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/hogan.js
npm http GET https://registry.npmjs.org/read-package-json
npm http GET https://registry.npmjs.org/stable
npm http GET https://registry.npmjs.org/rc
npm http GET https://registry.npmjs.org/unzip/0.0.4
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/socket.io/0.9.13
npm http GET https://registry.npmjs.org/chokidar/0.5.3
npm http GET https://registry.npmjs.org/minimatch/0.2.9
npm http GET https://registry.npmjs.org/optimist/0.3.5
npm http GET https://registry.npmjs.org/glob/3.1.20
npm http GET https://registry.npmjs.org/xmlbuilder/0.4.2
npm http GET https://registry.npmjs.org/rimraf/2.1.4
npm http GET https://registry.npmjs.org/http-proxy/0.8.7
npm http GET https://registry.npmjs.org/colors/0.6.0-1
npm http GET https://registry.npmjs.org/q/0.8.12
npm http GET https://registry.npmjs.org/istanbul/0.1.22
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http GET https://registry.npmjs.org/lodash/1.0.0-rc.3
npm http GET https://registry.npmjs.org/LiveScript/1.0.1
npm http GET https://registry.npmjs.org/growly/1.1.1
npm http GET https://registry.npmjs.org/mime/1.2.7
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http GET https://registry.npmjs.org/log4js/0.5.6
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/coffee-script/1.4.0
npm http 304 https://registry.npmjs.org/coffee-script/1.3.3
npm http 304 https://registry.npmjs.org/file
npm http 304 https://registry.npmjs.org/less
npm http 304 https://registry.npmjs.org/jade/0.26.3
npm http 304 https://registry.npmjs.org/ws/0.4.20
npm http 304 https://registry.npmjs.org/stylus
npm http 304 https://registry.npmjs.org/uglify-js
npm WARN package.json jade@0.26.3 No README.md file found!
npm http 304 https://registry.npmjs.org/clean-css
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/nib
npm http 304 https://registry.npmjs.org/coffeelint
npm http GET https://registry.npmjs.org/source-map
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/node-sprite/0.1.1
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/coffee-script/1.4.0
npm http 304 https://registry.npmjs.org/commander/0.6.1
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/ycssmin
npm http GET https://registry.npmjs.org/mkdirp/0.3.0
npm http GET https://registry.npmjs.org/glob/3.1.14
npm http GET https://registry.npmjs.org/vows/0.6.4
npm http 304 https://registry.npmjs.org/archy
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/vows
npm http 304 https://registry.npmjs.org/tmp
npm http GET https://registry.npmjs.org/coffee-script/1.3.3
npm http GET http://github.com/naltatis/node-imagemagick/tarball/master
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/seq/0.3.5
npm http GET https://registry.npmjs.org/watch/0.5.1
npm http GET https://registry.npmjs.org/underscore/1.3.1
npm http GET https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/read-package-json
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/hogan.js
npm http 304 https://registry.npmjs.org/stable
npm http GET https://registry.npmjs.org/cssom

> bower-asserts-brunch@0.0.1 postinstall /o/p/angular-brunch-seed/node_modules/bower-asserts-brunch
> node setup.js postinstall

npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/chokidar
npm http GET https://registry.npmjs.org/argumentum
npm http GET https://registry.npmjs.org/ncp
npm http 304 https://registry.npmjs.org/unzip/0.0.4
npm http 304 https://registry.npmjs.org/rc
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/walk
npm http 304 https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/chokidar/0.5.3
npm http 304 https://registry.npmjs.org/socket.io/0.9.13
npm http GET https://registry.npmjs.org/date-utils
npm http GET https://registry.npmjs.org/ansi-color
npm http GET https://registry.npmjs.org/growl
npm http GET https://registry.npmjs.org/mocha
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/inflection
npm http GET https://registry.npmjs.org/handlebars
npm http GET https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/minimatch/0.2.9
npm http 304 https://registry.npmjs.org/optimist/0.3.5
npm http 304 https://registry.npmjs.org/xmlbuilder/0.4.2
npm http 304 https://registry.npmjs.org/glob/3.1.20
npm http 304 https://registry.npmjs.org/rimraf/2.1.4
npm http 304 https://registry.npmjs.org/http-proxy/0.8.7
npm http 304 https://registry.npmjs.org/colors/0.6.0-1
npm http 304 https://registry.npmjs.org/q/0.8.12
npm http 304 https://registry.npmjs.org/istanbul/0.1.22
npm http 304 https://registry.npmjs.org/dateformat/1.0.2-1.2.3

> bower-stylesheet-brunch@0.0.1 postinstall /o/p/angular-brunch-seed/node_modules/bower-stylesheet-brunch
> node setup.js postinstall

> bower-javascript-brunch@0.0.1 postinstall /o/p/angular-brunch-seed/node_modules/bower-javascript-brunch
> node setup.js postinstall

npm http 304 https://registry.npmjs.org/LiveScript/1.0.1
npm http 304 https://registry.npmjs.org/lodash/1.0.0-rc.3
npm http 304 https://registry.npmjs.org/growly/1.1.1
npm http 304 https://registry.npmjs.org/mime/1.2.7
npm http 304 https://registry.npmjs.org/pause/0.0.1
npm http 304 https://registry.npmjs.org/log4js/0.5.6
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/coffee-script/1.4.0
npm http 304 https://registry.npmjs.org/ycssmin
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
npm http 304 https://registry.npmjs.org/vows/0.6.4
npm http 304 https://registry.npmjs.org/glob/3.1.14
npm http 304 https://registry.npmjs.org/coffee-script/1.3.3
npm http 304 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/async/0.1.15
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/socket.io-client/0.9.11
npm http GET https://registry.npmjs.org/prelude-ls
npm http GET https://registry.npmjs.org/handlebars
npm http GET https://registry.npmjs.org/base64id/0.1.0
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/escodegen
npm http GET https://registry.npmjs.org/esprima
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/fileset
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/cssom
npm http 304 https://registry.npmjs.org/underscore/1.3.1
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/watch/0.5.1
npm http 304 https://registry.npmjs.org/seq/0.3.5
npm WARN package.json cssom@0.2.5 No README.md file found!
npm http 304 https://registry.npmjs.org/ncp
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/argumentum
npm http 304 https://registry.npmjs.org/chokidar
npm http 304 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/amdefine
npm http 200 http://github.com/naltatis/node-imagemagick/tarball/master

> ws@0.4.20 install /o/p/angular-brunch-seed/node_modules/auto-reload-brunch/node_modules/ws
> node install.js

[ws v0.4.20] Attempting to compile blazing fast native extensions.
npm http 304 https://registry.npmjs.org/growl
npm http 304 https://registry.npmjs.org/walk
npm http 304 https://registry.npmjs.org/ansi-color
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/date-utils
npm http GET https://registry.npmjs.org/minimatch/0.2.9
npm http GET https://registry.npmjs.org/graceful-fs/1.1.14
npm http GET https://registry.npmjs.org/eyes/0.1.8
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/wordwrap/0.0.2
npm http GET https://registry.npmjs.org/inherits/1.0.0
npm http GET https://registry.npmjs.org/config-chain
npm http GET https://registry.npmjs.org/diff/1.0.4
npm http GET https://registry.npmjs.org/binary
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/slide
npm http GET https://registry.npmjs.org/pullstream/0.0.4
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/diff
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/eyes
npm WARN package.json walk@2.2.1 No README.md file found!
npm http GET https://registry.npmjs.org/block-stream
npm http GET https://registry.npmjs.org/npmlog
npm http GET https://registry.npmjs.org/pkginfo

> jade-angularjs-brunch@0.0.5 postinstall /o/p/angular-brunch-seed/node_modules/jade-angularjs-brunch
> node setup.js postinstall

npm http 304 https://registry.npmjs.org/handlebars
npm http 304 https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/inflection
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/mocha
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/prelude-ls
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.11
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/async/0.1.15
npm http GET https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/connect/2.7.2
npm http GET https://registry.npmjs.org/mkdirp/0.3.3
npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/fresh/0.1.0
npm http GET https://registry.npmjs.org/forEachAsync
npm http GET https://registry.npmjs.org/send/0.1.0
npm http GET https://registry.npmjs.org/cookie/0.0.5
npm http GET https://registry.npmjs.org/buffer-crc32/0.1.1
npm http GET https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/cookie-signature/0.0.1
npm http GET https://registry.npmjs.org/jade/0.26.3
npm http GET https://registry.npmjs.org/chainsaw
npm http GET https://registry.npmjs.org/diff/1.0.2
npm http GET https://registry.npmjs.org/hashish
npm http GET https://registry.npmjs.org/ms/0.3.0
npm http 304 https://registry.npmjs.org/esprima
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/escodegen
npm http 304 https://registry.npmjs.org/base64id/0.1.0
npm http 304 https://registry.npmjs.org/handlebars
npm http 304 https://registry.npmjs.org/fileset
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/minimatch/0.2.9
npm http 304 https://registry.npmjs.org/graceful-fs/1.1.14
npm http 304 https://registry.npmjs.org/eyes/0.1.8
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/inherits/1.0.0
npm http 304 https://registry.npmjs.org/wordwrap/0.0.2
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/graceful-fs
[ws v0.4.20] Native extension compilation successful!
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/diff/1.0.4
npm http 304 https://registry.npmjs.org/binary
npm http 304 https://registry.npmjs.org/config-chain
npm http GET https://registry.npmjs.org/lru-cache/2.0.4
npm http GET https://registry.npmjs.org/sigmund/1.0.0
npm http GET https://registry.npmjs.org/esprima
npm http GET https://registry.npmjs.org/source-map
npm http GET https://registry.npmjs.org/estraverse
npm http GET https://registry.npmjs.org/proto-list
npm http GET https://registry.npmjs.org/ini
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/slide
npm http 304 https://registry.npmjs.org/pullstream/0.0.4
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/diff
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/chainsaw
npm http 304 https://registry.npmjs.org/block-stream
npm http 304 https://registry.npmjs.org/npmlog
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/commander/0.6.1
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/mkdirp/0.3.3
npm http 304 https://registry.npmjs.org/connect/2.7.2
npm http 304 https://registry.npmjs.org/range-parser/0.0.4
npm http 304 https://registry.npmjs.org/fresh/0.1.0
npm http 304 https://registry.npmjs.org/forEachAsync
npm http 304 https://registry.npmjs.org/send/0.1.0
npm http 304 https://registry.npmjs.org/cookie/0.0.5
npm http GET https://registry.npmjs.org/ansi
npm http GET https://registry.npmjs.org/over
npm http GET https://registry.npmjs.org/stream-buffers
npm http GET https://registry.npmjs.org/buffers
npm http 304 https://registry.npmjs.org/jade/0.26.3
npm http 304 https://registry.npmjs.org/cookie-signature/0.0.1
npm http 304 https://registry.npmjs.org/methods/0.0.1
npm http 304 https://registry.npmjs.org/buffer-crc32/0.1.1
npm WARN package.json methods@0.0.1 No README.md file found!
npm http 304 https://registry.npmjs.org/ms/0.3.0
npm http 304 https://registry.npmjs.org/hashish
npm http 304 https://registry.npmjs.org/diff/1.0.2
npm http 304 https://registry.npmjs.org/chainsaw
npm http 304 https://registry.npmjs.org/lru-cache/2.0.4
npm http GET https://registry.npmjs.org/sequence
npm http GET https://registry.npmjs.org/mime/1.2.6
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http GET https://registry.npmjs.org/bytes/0.1.0
npm http 304 https://registry.npmjs.org/esprima
npm http 304 https://registry.npmjs.org/sigmund/1.0.0
npm http GET https://registry.npmjs.org/qs/0.5.1
npm http GET https://registry.npmjs.org/formidable/1.0.11
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/estraverse
npm http 304 https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/proto-list
npm http GET https://registry.npmjs.org/mkdirp/0.3.0

> coffeelint-brunch@1.4.4 postinstall /o/p/angular-brunch-seed/node_modules/coffeelint-brunch
> node setup.js postinstall

npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/ini
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
npm http 304 https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/chainsaw
npm http 304 https://registry.npmjs.org/ansi
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http 304 https://registry.npmjs.org/over
npm http 304 https://registry.npmjs.org/sequence
npm http 304 https://registry.npmjs.org/mime/1.2.6
npm http 304 https://registry.npmjs.org/buffers
npm http 304 https://registry.npmjs.org/stream-buffers
npm http 304 https://registry.npmjs.org/pause/0.0.1
npm http 304 https://registry.npmjs.org/formidable/1.0.11
npm http 304 https://registry.npmjs.org/qs/0.5.1
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/bytes/0.1.0
npm http 304 https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
npm http 304 https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/options

> ws@0.4.25 install /o/p/angular-brunch-seed/node_modules/testacular/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm WARN prefer global bower@0.7.1 should be installed with -g
make: Entering directory `/o/p/angular-brunch-seed/node_modules/testacular/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/o/p/angular-brunch-seed/node_modules/testacular/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
npm WARN prefer global testacular@0.6.0 should be installed with -g
coffee-script-brunch@1.5.0 node_modules/coffee-script-brunch

coffee-script@1.5.0 node_modules/coffee-script

bower-asserts-brunch@0.0.1 node_modules/bower-asserts-brunch
├── file@0.2.1
├── mkdirp@0.3.5
├── coffee-script@1.3.3
└── lodash@1.0.1

bower-stylesheet-brunch@0.0.1 node_modules/bower-stylesheet-brunch
├── q@0.8.12
├── underscore@1.4.4
└── coffee-script@1.3.3

bower-javascript-brunch@0.0.1 node_modules/bower-javascript-brunch
├── q@0.8.12
├── underscore@1.4.4
└── coffee-script@1.3.3

jade@0.28.1 node_modules/jade
├── commander@0.6.1
├── mkdirp@0.3.5
└── coffee-script@1.4.0

less-brunch@1.5.0 node_modules/less-brunch
├── coffee-script@1.4.0
└── less@1.3.3 (ycssmin@1.0.1)

jade-angularjs-brunch@0.0.5 node_modules/jade-angularjs-brunch
├── mkdirp@0.3.5
├── coffee-script@1.3.3
└── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0)

auto-reload-brunch@1.5.1 node_modules/auto-reload-brunch
├── coffee-script@1.4.0
└── ws@0.4.20 (tinycolor@0.0.1, options@0.0.3, commander@0.6.1)

uglify-js-brunch@1.5.0 node_modules/uglify-js-brunch
├── coffee-script@1.4.0
└── uglify-js@2.2.5 (source-map@0.1.8, optimist@0.3.5)

clean-css-brunch@1.5.0 node_modules/clean-css-brunch
├── coffee-script@1.4.0
└── clean-css@0.9.1 (optimist@0.3.5)

coffeelint-brunch@1.4.4 node_modules/coffeelint-brunch
├── coffee-script@1.3.3
└── coffeelint@0.5.4 (coffee-script@1.4.0, optimist@0.3.5, vows@0.6.4, glob@3.1.14)

brunch@1.5.3 node_modules/brunch
├── ansi-color@0.2.1
├── growl@1.6.1
├── inflection@1.2.5
├── debug@0.7.2
├── async@0.1.22
├── chokidar@0.5.3
├── mkdirp@0.3.5
├── argumentum@0.6.0
├── date-utils@1.2.12
├── ncp@0.2.6
├── coffee-script@1.4.0
├── rimraf@2.0.3 (graceful-fs@1.1.14)
├── handlebars@1.0.9 (uglify-js@1.2.6, optimist@0.3.5)
├── walk@2.2.1 (forEachAsync@2.2.0)
├── express@3.0.6 (methods@0.0.1, fresh@0.1.0, range-parser@0.0.4, cookie-signature@0.0.1, buffer-crc32@0.1.1, cookie@0.0.5, commander@0.6.1, mkdirp@0.3.3, send@0.1.0, connect@2.7.2)
└── mocha@1.7.4 (commander@0.6.1, diff@1.0.2, mkdirp@0.3.3, ms@0.3.0, jade@0.26.3)

stylus-brunch@1.5.0 node_modules/stylus-brunch
├── nib@0.9.1
├── coffee-script@1.4.0
├── stylus@0.32.0 (debug@0.7.2, mkdirp@0.3.5, cssom@0.2.5)
└── node-sprite@0.1.1 (imagemagick@0.1.2, watch@0.5.1, underscore@1.3.1, coffee-script@1.3.3, seq@0.3.5)

bower@0.7.1 node_modules/bower
├── archy@0.0.2
├── stable@0.1.3
├── colors@0.6.0-1
├── semver@1.1.3
├── tmp@0.0.16
├── async@0.1.22
├── mkdirp@0.3.5
├── request@2.11.4
├── hogan.js@2.0.0
├── lodash@0.9.2
├── rimraf@2.0.3 (graceful-fs@1.1.14)
├── nopt@2.0.0 (abbrev@1.0.4)
├── fstream@0.1.22 (inherits@1.0.0, graceful-fs@1.2.0)
├── tar@0.1.16 (inherits@1.0.0, block-stream@0.0.6)
├── vows@0.6.4 (eyes@0.1.8, diff@1.0.4)
├── rc@0.0.8 (config-chain@0.3.3, optimist@0.3.5)
├── glob@3.1.21 (inherits@1.0.0, graceful-fs@1.2.0, minimatch@0.2.11)
├── read-package-json@0.1.13 (graceful-fs@1.2.0, lru-cache@2.0.4, slide@1.1.3, npmlog@0.0.2)
└── unzip@0.0.4 (pullstream@0.0.4, binary@0.3.0)

testacular@0.6.0 node_modules/testacular
├── pause@0.0.1
├── dateformat@1.0.2-1.2.3
├── xmlbuilder@0.4.2
├── colors@0.6.0-1
├── q@0.8.12
├── growly@1.1.1
├── mime@1.2.7
├── chokidar@0.5.3
├── coffee-script@1.4.0
├── lodash@1.0.0-rc.3
├── rimraf@2.1.4 (graceful-fs@1.2.0)
├── minimatch@0.2.9 (sigmund@1.0.0, lru-cache@2.0.4)
├── log4js@0.5.6 (async@0.1.15)
├── LiveScript@1.0.1 (prelude-ls@0.6.0)
├── glob@3.1.20 (inherits@1.0.0, graceful-fs@1.2.0)
├── optimist@0.3.5 (wordwrap@0.0.2)
├── http-proxy@0.8.7 (pkginfo@0.2.3)
├── istanbul@0.1.22 (abbrev@1.0.4, fileset@0.1.5, wordwrap@0.0.2, async@0.1.22, mkdirp@0.3.5, which@1.0.5, nopt@2.0.0, handlebars@1.0.9, esprima@0.9.9, escodegen@0.0.17)
└── socket.io@0.9.13 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.io-client@0.9.11)
ilkosta commented 11 years ago

I'm wrong or it seems that node_modules\coffee-script-brunch\lib directory is not present? From the postinstall step of the package already in the cache (304):

// Compile coffeescript for git users.
  case 'postinstall':
    fsExists(sysPath.join(__dirname, 'lib'), function(exists) {
      if (exists) return;
      execute(getBinaryPath('coffee'), '-o lib/ src/');
    });
    break;
vivainio commented 11 years ago

@ilkosta yes, this directory is not present

ville@ville-tp:/home/p/angular-brunch-seed$ ls -F node_modules/coffee-script-brunch
CHANGELOG.md  package.json  README.md  setup.js  src/
ilkosta commented 11 years ago

I'm thinking that it is a strange error of npm because inside http://registry.npmjs.org/coffee-script-brunch/-/coffee-script-brunch-1.5.0.tgz there is a valid lib\ directory, as published by @paulmillr

@vivainio Have you downloaded the plugin from git? This would be the only cause for a recompilation with node_modules/.bin/coffee -o lib/ src/.

vivainio commented 11 years ago

@ilkosta no, I just installed everything normally with "npm install".

I noted that HEAD is broken in other ways; e.g. vendor/ dir is missing. So I downgraded to tag 0.1.1, noted that static-jade-brunch was missing lib/ directory, compiled it manually (coffee -o ./lib ./src) and saw that it started working.

So for some reason some modules are left uncompiled.

ilkosta commented 11 years ago

@vivainio that's really strange: in http://registry.npmjs.org/static-jade-brunch/-/static-jade-brunch-1.4.10.tgz the lib\ directory is correct, it was last updated 4 months ago. I must understand better npm, I'm thinking that the problem is there

kylefinley commented 11 years ago

@ilkosta & @vivainio, Sorry I can help out more with this issue. I'm not sure what the root cause is. I just updated npm to 1.2.11 and I'm having a similar issue with npm not installing .bin/bower in HEAD. I'm going to do some version testing.

Here's the previous issue that I was thinking of #32. I believe it was resolved by this commit to jade-brunch:

   include: [
-    (sysPath.join __dirname, '..', 'node_modules', 'jade', 'runtime.js')
+    (sysPath.join __dirname, '..', 'vendor', 'runtime.js')
   ]

I don't think we are dealing with the same issue here though.

I noted that HEAD is broken in other ways; e.g. vendor/ dir is missing.

@vivainio, the reason that 0.2.0 doesn't have a vendor directory is because. It's populated by Bower now. Therefore, is been removed from git, otherwise we would be committing all of jQuery, bootstrap, etc.. There's an open issue #50 to move the bower directory to components instead of vendor, but currently that's not possible.

kylefinley commented 10 years ago

Commit 4cffcba08874a5b101fb0ffd9b85f63576804ff6 (v0.4.0) adds native bower support, and moves bower components to bower_components.

I believe that release should resolve a lot of these issues. If you are still seeing the errors. Please reopen this issue, or create a new one.