Reputation: 23
I installed node js v13.14.0 on my machine but when I am trying to hit node -version it gives me an error saying node: bad option: -version whereas it works for npm -v and node -v. Also, complete command npm -version works.
And I am not able to start npm with npm start command. Can somebody plz help?
Upvotes: 0
Views: 260
Reputation: 1119
Use node --version
.
npm start
is actually performing task(s) defined in a package.json
within your project. Usually you will get an error if you run npm start
in a directory without a package.json
. In case other errors occur, npm usually gives a detailed output of what went wrong.
Upvotes: 1