DEV Community

Discussion on: Setting up a Minimal, Yet Useful JavaScript Dev Environment

Collapse
 
dynamo6 profile image
Dev @ Dynamo6

Great article, although ironically I've now wasted 30 minutes trying to get StandardJS to work. It appears to install fine but just cries "command not found" when I try and run it :/ I use plenty of other npm libraries on a daily basis so no idea whats wrong with this one ... Shame

Collapse
 
kamilogorek profile image
Kamil Ogórek

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.