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

Unknown command 'cr' #27

Open
gkatsanos opened this issue Jun 18, 2018 · 3 comments
Open

Unknown command 'cr' #27

gkatsanos opened this issue Jun 18, 2018 · 3 comments

Comments

@gkatsanos
Copy link

gkatsanos commented Jun 18, 2018

~/frontend   master $  npm install complexity-report      Mon Jun 18 10:31:07 2018
npm WARN [email protected] requires a peer of sinon@>=2.1.0 <5 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sinon@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package es6-promise is included as both a dev and production dependency.
npm WARN The package oauth-signature is included as both a dev and production dependency.

+ [email protected]
added 5 packages from 26 contributors in 26.249s
 ~/frontend   master *$  cr ./                     29.7s  Mon Jun 18 10:31:39 2018
fish: Unknown command 'cr'
 !  ~/frontend   master *$  cr                            Mon Jun 18 10:31:58 2018
fish: Unknown command 'cr'
 ~/frontend   master *$  node -v                   16.5s  Mon Jun 18 10:33:56 2018
v9.5.0
@73rhodes
Copy link

73rhodes commented Sep 25, 2018

To make the cr command available it needs to be in your PATH. You can either install it globally using npm -g install complexity-report (see NPM documentation for installing packages globally) or you can add ./node_modules/.bin to your PATH environment variable (see this example).

@73rhodes
Copy link

This is a duplicate of #26

@MilesHeise
Copy link

MilesHeise commented Aug 22, 2019

I struggled with this for a while too, before coming and looking for existing issues. This should be added to the readme, it is misleading how it currently appears that cr should just work and leads one to believe the problem is on your own machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants