我在安装后的脚本中进行了node-gyp重建。在此期间运行node-gyp重建将出错。如何在不进行node-gyp重建的情况下运行npm install?
你可以做:
npm install --ignore-scripts
Run Code Online (Sandbox Code Playgroud)
但它并不完美,因为它阻止执行所有依赖项中的所有脚本。
Dr.*_*all -3
脚本下的 package.json 执行以下操作:
"scripts": {
"install": "install -d $(pwd)"
}
Run Code Online (Sandbox Code Playgroud)