Rutvij's Odyssey

Life of a Developer and Technologies he plays with

Archive for March 2012

Sublime Text 2 JSHint Plugin issue on windows

leave a comment »

Sublime Text 2 is my favorite editor now a days. It has nice look and feel and great features.

I was trying to use its Plugin for integration of JSHint. I read Pre requistes and followed every steps but I was getting following error every time I do build (to run JSHint) .

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'PATH\AppData\Roaming\Sublime Text 2\Packages\JSHint\scripts\run.js'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)
[Finished]

I googled it to see if anyone has workaround,but I could not find one.  Finally I am able to solve it with following steps:

  1. Go to directory of JShint under packages for example …’PATH\AppData\Roaming\Sublime Text 2\Packages\JSHint
  2. Get   both the js files from https://github.com/victorporof/Sublime-JSHint/tree/master/scripts to scripts directory
  3. Restart Sublime and run JSHint it will work

Written by rutvijshah

March 25, 2012 at 10:16 pm