You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to integrate ESLint into my project and I'm running into the error: "Cannot find module 'eslint-plugin-angular'" when I run $ eslint *.js.
The only way I can get this to run is by installing eslint-plugin-angular globally, but that seems wrong (unless I'm missing something??).
I'm running:
node v0.12.7
npm 3.3.4
eslint v1.5.0
eslint-plugin-angular 0.12.0
ESLint is installed globally.
My package.json file has the following entries:
"eslint": "^1.5.0",
"eslint-plugin-angular": "^0.12.0",
I have $ rm -rf node_modules and rerun $ npm install to make sure there wasn't some kind of npm dependency issue or corruption. I also verified the directory permissions in node_modules to make sure access is possible.
"Note: A globally-installed instance of ESLint can only use globally-installed ESLint plugins. A locally-installed ESLint can make sure of both locally- and globally- installed ESLint plugins."
This falls under read the fine print in the manual. :/ Sorry for the bother. Closing issue.
Hi, I'm trying to integrate ESLint into my project and I'm running into the error: "Cannot find module 'eslint-plugin-angular'" when I run
$ eslint *.js
.The only way I can get this to run is by installing eslint-plugin-angular globally, but that seems wrong (unless I'm missing something??).
I'm running:
ESLint is installed globally.
My
package.json
file has the following entries:I have
$ rm -rf node_modules
and rerun$ npm install
to make sure there wasn't some kind of npm dependency issue or corruption. I also verified the directory permissions innode_modules
to make sure access is possible.My
.eslintrc
contains:What am I missing here? Thx!
The text was updated successfully, but these errors were encountered: