I created a package.json file which contains the following data:
After that used the following mand:
npm install
After that my file directory looks like that:
As you can see "Async" has been installed. But still keep getting this error:
Can anyone help??
Edited: Overall view of the Directory
I created a package.json file which contains the following data:
After that used the following mand:
npm install
After that my file directory looks like that:
As you can see "Async" has been installed. But still keep getting this error:
Can anyone help??
Edited: Overall view of the Directory
Share Improve this question edited Aug 17, 2015 at 12:46 Skywalker asked Aug 17, 2015 at 11:33 SkywalkerSkywalker 5,20417 gold badges66 silver badges127 bronze badges 2-
I can't see the
async
module inside thenode_modules
folder. What I see is that your main foldertask-management
has a different name from the one you gave to your package in thepackage.json
file. Are you sure you're in the same directory? – Rodrigo Medeiros Commented Aug 17, 2015 at 11:38 - @RodrigoMedeiros Apologies I have corrected my mistake. Please see the question. I am still getting the same error but you can see the Async in the node_module list. – Skywalker Commented Aug 17, 2015 at 12:14
4 Answers
Reset to default 2Erm, I might be crazy but I don't see async installed in the screenshot.
Try to install it manually via npm install async
.
You can try doing:
npm install async
instead of:
npm install -g async
This might help you.
In my case npm install async was still throwing an error so I have done following:
1. brew uninstall --force node (it deletes all node versions you have on puter)
2. brew doctor
3. brew prune
4. brew install node
5. npm install async
For those who are silly just like me, I did
npm install aysnc
instead of
npm install async
Please mind the spelling