It's because I don't use npm global installation in this article. If you want it to be accessible from anywhere, you have to write npm install -g standard.
However, if you use it withing package.json scripts, then it can be installed locally, without -g flag and it will still run when done through npm run lint or any other npm script.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's because I don't use npm global installation in this article. If you want it to be accessible from anywhere, you have to write
npm install -g standard
.However, if you use it withing
package.json
scripts, then it can be installed locally, without-g
flag and it will still run when done throughnpm run lint
or any othernpm
script.