Closed zhangxh1023 closed 3 years ago
大概看了一下,应该就是执行 lerna bootstrap
的时候调用 npm-lifecycle
来执行 example
包的postinstall
命令时报错了,因为 example
包缺少 name
字段。
@zhangxh1023 不用执行 lerna bootstrap
,如果要跑 example
的话,按以下步骤操作:
$ git clone https://github.com/ykfe/imove.git
$ cd imove/example
$ npm install
$ npm start
不要在根目录 npm install
好的吧,是我看错了。了解了 :)
MacOS 11.2.3 Node.js v14.16.0 NPM 6.14.11
看起来好像是
example
下的package.json
里面缺少name
字段。 https://github.com/ykfe/imove/blob/master/example/package.json是不是应该改成这样,增加一个
name: example
为 package name。