找不到模块“asynchronous”错误
我创build了一个包含以下数据的package.json文件:
之后,使用以下命令:
npm install
之后,我的文件目录看起来像这样:
正如你所看到的“asynchronous”已经安装。 但仍然不断收到这个错误:
谁能帮忙?
编辑:目录的总体看法
嗯,我可能会疯了,但我没有看到截图中安装的asynchronous。 尝试通过npm install async
手动npm install async
。
你可以尝试做:
npm install async
代替:
npm install -g async
这可能会帮助你。
在我的情况下,npm安装asynchronous仍然抛出一个错误,所以我做了以下事情:
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