Reputation: 6349
As I installed the intern locally by command
npm install intern --save-dev
And globally by command
npm install -g intern
It seems that the intern is installed but how do I confirm it?
As I run the command intern --version
, the error message said
intern is not recognized as internal or external command
How do I confirm that intern
is installed successfully?.
Upvotes: 0
Views: 470
Reputation: 3363
Intern's bin scripts are called intern-runner
and intern-client
. If you have installed Intern globally, you should be able to run either of those directly; doing so should print an error message indicating that Intern needs a config. If you have installed Intern locally to your project, you'll either need to add "./node_modules/.bin" to your PATH, or run intern as ./node_modules/.bin/intern-{runner,client}
Intern does not support a --version
flag. Check out the documentation for more information about supported arguments.
Upvotes: 1