'How do I fix a npm WARN lifecycle error from Namecheap?

This is the error I'm getting when I run NPM install in Namecheap Cpanel:

Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

I tried adding a file at the root folder of the app, called .npmrc, place this line into it:

scripts-prepend-node-path=true

but that didn't work. Any ideas on how to resolve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source