Hi, after updating to master I'm having trouble pu...
# getting-started
o
Hi, after updating to master I'm having trouble pushing out commits to any branch. The ESLint script that runs fails to find the @dh-tools repository. I tried running through the commands in ESLint section to install it, but that gave me the same error when trying to install the @dh-tools plugin. Any quick fixes for this?
g
Hey Ryan- which eslint script are you running and what is the specific error its giving?
@orange-night-91387 ?
o
The precommit script, not intentionally running it. It runs automatically when I try to commit to my repo. .eslintrc.precommit.js
Copy code
Oops! Something went wrong! :(

ESLint: 6.8.0.

ESLint couldn't find the plugin "@dh-tools/eslint-plugin".

(The package "@dh-tools/eslint-plugin" was not found when loaded as a Node module from the directory "/Users/rholstien/OSS/datahub/datahub-web".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

npm install @dh-tools/eslint-plugin@latest --save-dev

The plugin "@dh-tools/eslint-plugin" was referenced from the config file in ".eslintrc.js".

If you still can't figure out the problem, please stop by <https://gitter.im/eslint/eslint> to chat with the team.
And when I try to run the install command from that error:
Copy code
npm install @dh-tools/eslint-plugin --save-dev
npm ERR! code E404
npm ERR! 404 Not Found - GET <https://registry.npmjs.org/@dh-tools%2feslint-plugin> - Not found
npm ERR! 404 
npm ERR! 404 '@dh-tools/eslint-plugin@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
ah @orange-night-91387 where are you running the command from?
you may need to be running it from
datahub-web
directory
o
I'll try that
I'm running it from the main directory since that's where I usually commit from
It's definitely doing something more this time, hopefully it runs to completion. Hoping that once it's installed I don't have to commit from a specific directory 😆
Thanks a ton for the help!
g
nice!
o
It worked!
g
🥳
thankyou 1
🎉 2