eslint won't update past v4.5.0, “Error: Cannot find module 'eslint-config-google'”
I had an old version of eslint:
eslint -v
v4.5.0
To update eslint I ran:
npm install -g eslint
The response said that eslint@5.9.0 had been installed successfully. Following the instructions in the documentation in my project root I ran
eslint --init
I selected the Google style guide. The install said
The style guide "google" requires eslint@>=5.4.0. You are currently using eslint@4.5.0.
Do you want to upgrade? (Y/n)
That seemed odd, as I'd just installed 5.9.0, but I said Yes. The response said that the installation was successful:
Successfully created .eslintrc.json file in /Users/TDK/LanguageTwo
ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.
Then I ran
eslint -v
v4.5.0
I checked echo $PATH and didn't see anything like eslintvm locking in an old version.
I tried to lint a file and got this error message:
Error: Cannot find module 'eslint-config-google'
eslint v5.9.0 is now installed locally in my project root and I can see eslint-config-google in the node modules. eslint 5.9.0 is installed globally. My guess is that the "missing" eslint-config-google is because my computer is still running eslint v4.5.0. I restarted my computer. What is keeping eslint at v4.5.0?
eslint
add a comment |
I had an old version of eslint:
eslint -v
v4.5.0
To update eslint I ran:
npm install -g eslint
The response said that eslint@5.9.0 had been installed successfully. Following the instructions in the documentation in my project root I ran
eslint --init
I selected the Google style guide. The install said
The style guide "google" requires eslint@>=5.4.0. You are currently using eslint@4.5.0.
Do you want to upgrade? (Y/n)
That seemed odd, as I'd just installed 5.9.0, but I said Yes. The response said that the installation was successful:
Successfully created .eslintrc.json file in /Users/TDK/LanguageTwo
ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.
Then I ran
eslint -v
v4.5.0
I checked echo $PATH and didn't see anything like eslintvm locking in an old version.
I tried to lint a file and got this error message:
Error: Cannot find module 'eslint-config-google'
eslint v5.9.0 is now installed locally in my project root and I can see eslint-config-google in the node modules. eslint 5.9.0 is installed globally. My guess is that the "missing" eslint-config-google is because my computer is still running eslint v4.5.0. I restarted my computer. What is keeping eslint at v4.5.0?
eslint
This morning I ran eslint -v and it said v5.9.0, apparently multiple computer restarts were required. I still have the error message "Error: Cannot find module 'eslint-config-google'".
– Thomas David Kehoe
Nov 29 '18 at 15:38
add a comment |
I had an old version of eslint:
eslint -v
v4.5.0
To update eslint I ran:
npm install -g eslint
The response said that eslint@5.9.0 had been installed successfully. Following the instructions in the documentation in my project root I ran
eslint --init
I selected the Google style guide. The install said
The style guide "google" requires eslint@>=5.4.0. You are currently using eslint@4.5.0.
Do you want to upgrade? (Y/n)
That seemed odd, as I'd just installed 5.9.0, but I said Yes. The response said that the installation was successful:
Successfully created .eslintrc.json file in /Users/TDK/LanguageTwo
ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.
Then I ran
eslint -v
v4.5.0
I checked echo $PATH and didn't see anything like eslintvm locking in an old version.
I tried to lint a file and got this error message:
Error: Cannot find module 'eslint-config-google'
eslint v5.9.0 is now installed locally in my project root and I can see eslint-config-google in the node modules. eslint 5.9.0 is installed globally. My guess is that the "missing" eslint-config-google is because my computer is still running eslint v4.5.0. I restarted my computer. What is keeping eslint at v4.5.0?
eslint
I had an old version of eslint:
eslint -v
v4.5.0
To update eslint I ran:
npm install -g eslint
The response said that eslint@5.9.0 had been installed successfully. Following the instructions in the documentation in my project root I ran
eslint --init
I selected the Google style guide. The install said
The style guide "google" requires eslint@>=5.4.0. You are currently using eslint@4.5.0.
Do you want to upgrade? (Y/n)
That seemed odd, as I'd just installed 5.9.0, but I said Yes. The response said that the installation was successful:
Successfully created .eslintrc.json file in /Users/TDK/LanguageTwo
ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.
Then I ran
eslint -v
v4.5.0
I checked echo $PATH and didn't see anything like eslintvm locking in an old version.
I tried to lint a file and got this error message:
Error: Cannot find module 'eslint-config-google'
eslint v5.9.0 is now installed locally in my project root and I can see eslint-config-google in the node modules. eslint 5.9.0 is installed globally. My guess is that the "missing" eslint-config-google is because my computer is still running eslint v4.5.0. I restarted my computer. What is keeping eslint at v4.5.0?
eslint
eslint
asked Nov 27 '18 at 17:36
Thomas David KehoeThomas David Kehoe
2,17711435
2,17711435
This morning I ran eslint -v and it said v5.9.0, apparently multiple computer restarts were required. I still have the error message "Error: Cannot find module 'eslint-config-google'".
– Thomas David Kehoe
Nov 29 '18 at 15:38
add a comment |
This morning I ran eslint -v and it said v5.9.0, apparently multiple computer restarts were required. I still have the error message "Error: Cannot find module 'eslint-config-google'".
– Thomas David Kehoe
Nov 29 '18 at 15:38
This morning I ran eslint -v and it said v5.9.0, apparently multiple computer restarts were required. I still have the error message "Error: Cannot find module 'eslint-config-google'".
– Thomas David Kehoe
Nov 29 '18 at 15:38
This morning I ran eslint -v and it said v5.9.0, apparently multiple computer restarts were required. I still have the error message "Error: Cannot find module 'eslint-config-google'".
– Thomas David Kehoe
Nov 29 '18 at 15:38
add a comment |
1 Answer
1
active
oldest
votes
I used find . -name 'eslint' to remove every copy of eslint from every directoty. npm uninstall -g eslint didn't remove every module. Then I reinstalled eslint and ran eslint init. Now it's at v5.9.0. It still has the error
Error: Cannot find module 'eslint-config-google'
I don't know what's causing this problem.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53505186%2feslint-wont-update-past-v4-5-0-error-cannot-find-module-eslint-config-googl%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I used find . -name 'eslint' to remove every copy of eslint from every directoty. npm uninstall -g eslint didn't remove every module. Then I reinstalled eslint and ran eslint init. Now it's at v5.9.0. It still has the error
Error: Cannot find module 'eslint-config-google'
I don't know what's causing this problem.
add a comment |
I used find . -name 'eslint' to remove every copy of eslint from every directoty. npm uninstall -g eslint didn't remove every module. Then I reinstalled eslint and ran eslint init. Now it's at v5.9.0. It still has the error
Error: Cannot find module 'eslint-config-google'
I don't know what's causing this problem.
add a comment |
I used find . -name 'eslint' to remove every copy of eslint from every directoty. npm uninstall -g eslint didn't remove every module. Then I reinstalled eslint and ran eslint init. Now it's at v5.9.0. It still has the error
Error: Cannot find module 'eslint-config-google'
I don't know what's causing this problem.
I used find . -name 'eslint' to remove every copy of eslint from every directoty. npm uninstall -g eslint didn't remove every module. Then I reinstalled eslint and ran eslint init. Now it's at v5.9.0. It still has the error
Error: Cannot find module 'eslint-config-google'
I don't know what's causing this problem.
answered Dec 17 '18 at 18:43
Thomas David KehoeThomas David Kehoe
2,17711435
2,17711435
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53505186%2feslint-wont-update-past-v4-5-0-error-cannot-find-module-eslint-config-googl%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This morning I ran eslint -v and it said v5.9.0, apparently multiple computer restarts were required. I still have the error message "Error: Cannot find module 'eslint-config-google'".
– Thomas David Kehoe
Nov 29 '18 at 15:38