brunch / jshint-brunch

Adds JSHint linting support to Brunch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New updates breaking the brunch watch/build

colintoh opened this issue · comments

This error didn't happened before and only appear today after i tried to "npm install" a new app.

> jshint-brunch@1.5.0 postinstall /Users/ct_polar/Desktop/appname/node_modules/jshint-brunch
> node setup.js test

Executing node node_modules/mocha/bin/mocha --require test/common.js --colors

module.js:340
    throw err;
          ^
Error: Cannot find module '/Users/ct_polar/Desktop/appname/node_modules/jshint-brunch/node_modules/mocha/bin/mocha'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.runMain (module.js:487:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
jshint-brunch@1.4.1 node_modules/jshint-brunch
├── coffee-script@1.4.0
└── jshint@0.9.1 (minimatch@0.0.5, cli@0.4.3)

This error happens when i brunch build/watch

- error: { [Error: Cannot find module '/Users/ct_polar/Desktop/appname/node_modules/jshint-brunch']

In my package.json, the url is pointed to "git+ssh://git@github.com:brunch/jshint-brunch.git". So i know it's grabbing the stuff from the latest git version. The only way to solve this is to copy my modules from my older projects(at least 1 month back) and overwrite it.

This happend to stylus-brunch and autoreload-brunch too.

If it helps, this is the skeleton that I'm building on : https://github.com/colintoh/ember-brunch-2359

ah, shit. fixed, thanks for report.

jshint brunch is breaking again. The same "Module is not found" error. Did entire uninstall and install of brunch but it's not working. similar for stylus brunch

what module is missing now?

jshint and stylus. version 1.5.1. These are the only two modules that I'm pulling straight from the latest Github updates. The moment I switched them to "<1.5". The errors are gone.

There might be many more brunch modules that are missing especially those that you updated recently.