Closed dheeraja00 closed 11 years ago
Looks like I'm seeing the Mac equivalent of this error, even though npm install -g jslint
succeeded:
Error: Cannot find module '/usr/local/bin/jslint'
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)
[Finished in 0.2s with exit code 1]
Seeing this error as well.
Where's your Jslint installed? Is it available from the command line?
On 2012-10-19, at 3:10 PM, Andrew Martin notifications@github.com wrote:
Seeing this error as well.
— Reply to this email directly or view it on GitHubhttps://github.com/darrenderidder/Sublime-JSLint/issues/5#issuecomment-9590767.
I have installed JSlint on Sublime Text 2 by using Package Controller and I am not sure if it's available from command line & actually I don't know the process to check this on command line.
Hi folks, the same happened to me using a Mac. I try to install all from the package Controller. All seems to work fine, but the the console throw this:
No such file or directory [cmd: [u'/usr/local/bin/node', u'/usr/local/bin/jslint', u'--sloppy', u'--indent', u'2', u'--node', u'--nomen', u'--vars', u'--plusplus', u'--stupid', u'/Users/nfmelendez/makingfun/workspace/mfrufus/src/main/js/metrics/0002-run.js']] [dir: /Users/nfmelendez/makingfun/workspace/mfrufus/src/main/js/metrics] [path: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/Library/PostgreSQL/9.1/bin:/Users/nfmelendez/scalas/scala/scala-2.9.0.final/bin:/Users/nfmelendez/bin:/Users/nfmelendez/play-framework:/Users/nfmelendez/springsourcegg/ggts-3.0.0.RELEASE:/usr/local/tomcat/bin:/Users/nfmelendez/activica/grails/grails/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/Library/PostgreSQL/9.1/bin:/Users/nfmelendez/scalas/scala/scala-2.9.0.final/bin:/Users/nfmelendez/play-2.0.1:/Users/nfmelendez/.gem/ruby/1.8/bin:/usr/local/mongodb/bin] [Finished]
This looks like you may not have node or node-jslint installed. This plugin depends on having node and the node jslint module installed globally so you can use it from the command line. If you've installed node, npm and node-jslint properly, you shouldn't be seeing this. For example, 'which jslint' should display '/usr/local/bin/jslint', and 'head -1 which jslint
' should show "#!/usr/bin/env node".
Not working on Windows: [Error 2] The system cannot find the file specified error.
"svn_tortoiseproc_path": "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe",
This path is correct. Not sure where to get any othe rdebug output on the error.
I am also having this problem, the output of 'which jslint': /usr/bin/jslint
Running jslint someJsFile.js in commandline parses as expected.
Sublimetext output:
[Errno 2] No such file or directory [cmd: [u'/usr/local/bin/node', u'/usr/local/bin/jslint', u'--sloppy', u'--indent', u'2', u'--node', u'--nomen', u'--vars', u'--plusplus', u'--stupid', u'/mnt/Mimir/Clients/Media Suite/www/transport-for-chch-mobile-new/app/scripts/viewModels/AbstractViewModel.js']] [dir: /mnt/Mimir/Clients/Media Suite/www/transport-for-chch-mobile-new/app/scripts/viewModels] [path: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games] [Finished]
My node and jslint both appear to be run from /usr/bin/ but not from /usr/local/bin - I thought that I had installed node normally.
Where's node on your system? Just adjust the cmd to use it. Also note, if you're on Windows this plugin won't work, unfortunately. It's a known issue with node exit status.
Thanks, I modified the cmd array in JSLint.sublime-build. The plugin now works as expected.
Just had this issue again on OSX. As @Resonance1584 did, I just modified the JSLint.sublime-build and added in the correct path for node. To do this, get the location of node by typing which node in terminal. This should give you the full path. Mine was /usr/local/bin/node. I then opened the JSLint.sublime-build (you can find it in the Sublime Text packages directory) and changed the line "node" to "/usr/local/bin/node".
PS. As also said above, you need to install node-jslint first with npm.
It seems weird but in my case the solution is different. I was getting following error:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'c:\\users\\arvind~1\\appdata\\local\\temp\\SublimeLinter3-arvind\\app.js'
I checked the c:\\users\\arvind~1\\appdata\\local\\temp\\
folder and found that it had not SublimeLinter3-arvind
folder. I created this folder manually and JSHint it started working..
I have installed JSlint as per mentioned steps but when I tried to run it I got below error:
[Error 2] The system cannot find the file specified [cmd: [u'/usr/local/bin/node', u'/usr/local/bin/jslint', u'--sloppy', u'--indent', u'2', u'--node', u'--nomen', u'--vars', u'--plusplus', u'--stupid', u'']] [dir: C:\Users\agrawal_d\AppData\Roaming\Sublime Text 2\Packages] [path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;c:\Python27;C:\Program Files\nodejs\;C:\Users\agrawal_d\AppData\Roaming\npm] [Finished]