React JS – Resolving error while using Fluent UI web components – npm ERR! cb() never called!

Hi All,
Greetings for the day !!
Today new issue and resolution ! Short article but useful for REACT / SPFx developers
Background –
- In my current project I got an opportunity to implement the SPFx component
- We are implementing SPFx project using REACT
- So started refreshing my REACT skills
- I started exploring Fluent UI web components using REACT so started installing Fluent UI web component using npm as
npm install --save @fluentui/web-components
While executing the above error we are getting an below error
Issue –
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2022-03-21T10_06_23_503Z-debug.log
Solution –
Just we need to clear the cache. Need to execute following commands
npm cache clean --force

What is npm cache. why its necessary to clean timely basis, I am coming with next article, please stay tuned, will share soon.
After cleaning the cache, tried to install the components again and those get successfully installed
npm install --save @fluentui/web-components

Thanks for reading ! share your experience in case related to this error !
HAVE A GREAT TIME AHEAD !! LIFE IS BEAUTIFUL 🙂
1 Response
[…] In first article we discussed how to resolve this error. React JS – Resolving error while using Fluent UI web components – npm ERR! cb() never called! […]
You must log in to post a comment.