I'm trying to install reacts-notifications-components, as they recommend in the documentation, after installing the library with npm install, we should run npm run build:library:dev, but when I try to run that command I get that error:
npm ERR! missing script: build:library:dev
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\USER\AppData\Roaming\npm-cache\_logs\2022-08-16T17_38_34_306Z-debug.log
any idea how I can solve that
CodePudding user response:
If anyone struggling with this, I have been able to build the library using the command :
npm run build
it does the job for me and the library is working fine
CodePudding user response:
After installing reacts-notifications-components through NPM . You don't need to run npm run build:library:dev
. You just need to import the library into your codebase, follow the examples and you're good to go. That's all you have to do to use it in your application.
you can use npm run build:library:dev
only if you cloned/fetched the repo and you want to build/change it locally. (this is for Development only, not for usage)