Troubleshoot NPM deployments to Azure Web Apps
Sometimes
npm install
and the subsequent build tasks work locally but fail in the remote Azure Web App.
Ensure your remote is running the same Node and NPM versions as your local is.
node -v
npm -v
Delete the remote's
node_modules
directory.
npm install -g rimraf
rimraf node_modules