[英]“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.