[英]I tried installing the dependencies with npm i, but it doesn't work !! Help me
Can you provide a sample package.json
?你能提供样品package.json
吗? It seems to be a issue with make.好像是make的问题。 What you can do in the mean time you could try deleting the package-lock.json
and then do a npm install
.与此同时,您可以尝试删除package-lock.json
然后执行npm install
。 See if that fixes the issue.看看是否能解决问题。
If it threw that error from 1st time running npm install
that's probably not the issue.如果它从第一次运行npm install
时抛出该错误,那可能不是问题所在。
One other thing you could try is to make sure you have the build tools installed on your macOS.您可以尝试的另一件事是确保您在 macOS 上安装了构建工具。
xcode-select --install
EDIT:编辑:
rm -rf ~/LibraryCaches/node-gyp
rm package-lock.json && rm -rf node_modules && rm -rf ~/.node-gyp
npm install
You can also check these steps to further debug your issue.您还可以检查这些步骤以进一步调试您的问题。
Hope it helps.希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.