【发布时间】:2022-02-12 11:24:41
【问题描述】:
这是我在 Namecheap Cpanel 中运行 NPM install 时遇到的错误:
Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
我尝试在应用程序的根文件夹中添加一个名为 .npmrc 的文件,将这一行放入其中:
scripts-prepend-node-path=true
但这没有用。 有关如何解决此问题的任何想法?
【问题讨论】:
标签: node.js npm hosting npm-install namecheap