I used following in package.json when deploying to azure web site:
{
"name": "mypackage",
...
"engines": {
"node": "6.11.1",
"npm": "4.2.0"
},
...
}
Everything worked fine but I also got following warning:
npm WARN lifecycle The node binary used for scripts is D:\Program Files (x86)\nodejs\6.9.1\node.exe but npm is using D:\Program Files (x86)\nodejs\6.11.1\node.exe itself. Use the --scripts-prepend-node-path
option to include the path for the node binary npm was executed with.
Finished successfully.
How do I set this --scripts-prepend-node-path option when deploying to azure web sites?