简体   繁体   中英

ERR! missing script: build:library:dev

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

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

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM