【问题标题】:Error: package reason-react not found or built错误:未找到或构建包原因反应
【发布时间】:2018-06-24 01:37:22
【问题描述】:

运行后:

bsb -init my-react-login-app -theme react

然后,据我所知,我运行以下命令来构建项目:

$npm run build

但是,我得到以下错误输出:

> my-react-login-app@0.1.0 build /Users/kevinmeredith/Workspace/my-react-login-app
> bsb -make-world

Package not found: resolving package reason-react in /  
File "bsconfig.json", line 1
Error: package reason-react not found or built , if it is not built
Please run 'bsb -make-world', otherwise please install it
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! my-react-login-app@0.1.0 build: `bsb -make-world`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the my-react-login-app@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kevinmeredith/.npm/_logs/2018-06-24T01_36_13_899Z-debug.log

我该如何解决这个问题?

【问题讨论】:

    标签: reason reason-react


    【解决方案1】:

    查看自述文件;该模板需要您通过npm installyarn add 安装reason-react。之后它应该工作。我们不会在模板中检查整个 reason-react 依赖链。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-13
      • 1970-01-01
      • 2019-02-17
      • 2020-07-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多