I deleted the local folder which contained bluebird
on my system using:
rm -rf <module_path>
And now when I try to install it again using:
npm install bluebird
or npm install bluebird --save
I get the following error everytime:
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'bluebird'
I'm kind of stuck here because the only way I can think of fixing the error is by installing bluebird but I can't install it because of the above error.
This was because of an issue with my package-lock.json
. I deleted the package-lock
and reran npm install
and that ended up fixing my issue