我是Node.js,npm和崇高環境的新手,我發現很難將ESlint和sublime編輯器集成在一起。集成ESLint和崇高的錯誤
我隨後的步驟如下:
- 安裝ESLint與命令:
npm install -g eslint
- 安裝ESLint與卓異包控制
現在越來越在卓異編輯以下錯誤:
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)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\MyUser\AppData\Roaming\Sublime Text 3\Packages\ESLint\linter.js:12:17)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
[Finished in 0.2s with exit code 1]
謝謝:-)應該接受答案 –