简体   繁体   English

错误:缺少脚本:构建:库:开发

[英]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:我正在尝试按照文档中的建议安装reacts-notifications-components ,在使用 npm install 安装库后,我们应该运行npm 运行 build:library:dev ,但是当我尝试运行该命令时出现该错误:

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 npm 运行构建

it does the job for me and the library is working fine它为我完成了工作,图书馆工作正常

After installing reacts-notifications-components through NPM.通过 NPM 安装reacts-notifications-components后。 You don't need to run npm run build:library:dev .您不需要运行npm run build:library:dev You just need to import the library into your codebase, follow the examples and you're good to go.您只需要将库导入您的代码库,按照示例进行操作,您就可以使用 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.您可以使用 npm run build:library:dev仅当您克隆/获取存储库并且您想在本地构建/更改它时。 (this is for Development only, not for usage) (这仅用于开发,不用于使用)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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