Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-bash: standard: command not found #1280

Closed
aaronhong opened this issue May 14, 2019 · 5 comments

Comments

@aaronhong
Copy link
Contributor

commented May 14, 2019

The alias to use standard on the command line doesn't work. I did an npm install standard --save-dev. Not exactly sure how npm does command aliasing or adding stuff to PATH.

What version of standard?
12.0.1

What operating system, Node.js, and npm version?

  • macOS 10.14.4
  • Node.js v8.11.3
  • npm 6.8.0

What did you expect to happen?

$ standard --help
standard - Use JavaScript Standard Style (https://standardjs.com)

Usage:
# etc

What actually happened?

$ standard --help
-bash: standard: command not found

What works for me

$ node_modules/standard/bin/cmd.js --help
standard - Use JavaScript Standard Style (https://standardjs.com)

Usage:
# etc
@kevinrambaud

This comment has been minimized.

Copy link

commented May 15, 2019

You need to run it by using npx and do npx standard --help or install it globally by doing npm install -g standard and then run standard --help.

@aaronhong

This comment has been minimized.

Copy link
Contributor Author

commented May 17, 2019

@kevinrambaud makes complete sense. Thanks so much. Should this be added to the documentation?

@kevinrambaud

This comment has been minimized.

Copy link

commented May 17, 2019

Feel free to open a pull request if you think it could help people to get started more easily. The Usage section seems to be the appropriate place to do so.

@aaronhong

This comment has been minimized.

Copy link
Contributor Author

commented Jul 2, 2019

I opened a pulled request, but it hasn't been reviewed and merged yet

@feross

This comment has been minimized.

Copy link
Member

commented Jul 5, 2019

@aaronhong Thanks for the PR. It is reviewed and merged now :)

@feross feross closed this Jul 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.