polygonplanet / sublime-text-eslint

ESLint any JavaScript file in Sublime Text
24 stars 7 forks source link

not working in st3 windows #1

Closed TracerLee closed 8 years ago

TracerLee commented 8 years ago

module.js:327 throw err; ^

Error: Cannot find module 'eslint' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17)

How to solve this problem? something setting wrong? The node module was already installed by npm.

polygonplanet commented 8 years ago

Maybe, npm's eslint module is not installed. Install eslint globally by typing the following in a terminal:

npm install -g eslint
TracerLee commented 8 years ago

Thx