运行onekey sdk项目

hardware-js-sdk development

Before you start make sure you have downloaded and installed NVM, Yarn and git with git lfs.

  • git clone [email protected]:OneKeyHQ/hardware-js-sdk.git
  • git submodule update --init --recursive
  • yarn
  • yarn bootstrap

Run a dev build:

  • yarn dev:web (web sdk)
  • yarn dev:ble (react-native sdk)
  • yarn dev:core (core package)
  • yarn dev:transport-http (transport-http package)
  • yarn dev:shared (shared package)

以上为官方提出的内容,其中,第一步的git clone 就有错误,猜测是作者没有更新代码仓库的变化,

所以第二步也错了,

git submodule sync --recursive
git submodule update --init --recursive
这里更新了原路径 的url

(ps:这里是玄学,有的就能更新上submodule,有的不行)

之后步骤正常,但是在yarn dev:web上,需要修改一个地方

打开package.json文件

 之后web应该可以运行了

猜你喜欢

转载自blog.csdn.net/m0_73016265/article/details/130217059
今日推荐