Reputation: 35
I can't able to install/uninstall any npm package due to this error Cannot find module 'emoji-regex'. Any idea what went wrong? .below are my configurations. And I tried npm install emoji-regex, this also giving error NPM- 6.14.4 Angular CLI: 11.0.6 Node: 12.16.3
Upvotes: 0
Views: 584
Reputation: 385
Follow these steps
1. Remove package-lock.json file
2. remove node_modules folder
3. npm cache clean --force
4. npm install
and please make sure if you are under any organization network, turn on the required firewalls and use proper registry inside .npmrc file
Upvotes: 2