![](/img/trans.png)
[英]“Cannot find module 'async'” error when trying to deploy to Heroku
[英]Cannot find module "async" Error
嗯,我可能疯了,但我没有在屏幕截图中看到 async 安装。 尝试通过npm install async
手动npm install async
。
你可以尝试这样做:
npm install async
代替:
npm install -g async
这可能对你有帮助。
在我的情况下, npm install async 仍然抛出错误,所以我做了以下操作:
1. brew uninstall --force node (it deletes all node versions you have on computer)
2. brew doctor
3. brew prune
4. brew install node
5. npm install async
对于那些和我一样傻的人,我做到了
npm install aysnc
代替
npm install async
请注意拼写
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.