Patrick
Patrick

Reputation: 5866

Azure - npm not a recognized command

I am getting the following bizarre error on Azure.

When I run Kudu it reports the proper version of npm and when I run it from the CMD it runs npm fine.

What the heck is going on? Is this some sort of a PATH issue or something?

An unhandled exception occurred while processing the request. AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: 'npm' is not recognized as an internal or external command,

npm issues

Edit To clarify further.

npm runs in the Kudu command like, so does node. The versions are correct, and the location in the PATH is also correct.

enter image description here

Upvotes: 0

Views: 266

Answers (1)

Md Wahid
Md Wahid

Reputation: 460

You can follow the following steps:

  • Install/Re-install node.
  • Shutdown your PC for 5 minutes.
  • Search environment variables from start menu's search box.
  • Click it then go to Environment Variables
  • Click PATH
  • Click Edit
  • Click New and try to copy and paste your path for 'bin' folder [find where you installed the node] for example according to my machine 'C:\Program Files\nodejs\node_modules\npm\bin'

If you got any error. try the another step:

  • Click New, then browse for the 'bin' folder

Upvotes: 1

Related Questions