raveendra reddy
raveendra reddy

Reputation: 35

NPM can't install/uninstall any packages

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 enter image description here NPM- 6.14.4 Angular CLI: 11.0.6 Node: 12.16.3

Upvotes: 0

Views: 584

Answers (1)

Logan Young
Logan Young

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

Related Questions