我正在使用Lerna管理一个React组件库。我的一些组件既有来自NPM注册表的外部依赖项,也有来自存储库中的内部依赖项、兄弟包。
我正在尝试使用
lerna add
命令。具体来说,我想添加实用程序,排版,链接,到hrwrapper。
添加我运行的实用程序
:
lerna add Utils --scope=HRWrapper
收到这个错误
:
lerna notice cli v3.2.1
lerna info versioning independent
lerna WARN No packages found where Utils can be added.
要安装我运行的排版
:
lerna add Typography --scope=HRWrapper
收到这个错误
:
lerna notice cli v3.2.1
lerna info versioning independent
lerna ERR! Error: 404 Not Found - GET https://registry.npmjs.org/Typography - Not found
lerna ERR! at res.buffer.catch.then.body (/Users/powje6f/sites/vz-react/node_modules/npm-registry-fetch/check-response.js:104:15)
lerna ERR! lerna 404 Not Found - GET https://registry.npmjs.org/Typography - Not found
我不知道第一个错误在安装utils时意味着什么。但是,出于某种原因,当我尝试添加排版时,它正在NPM注册表中搜索它。
这是我的Lerna.json
:
{
"lerna": "2.10.0",
"packages": ["packages/**/*"],
"version": "independent"
}
我做错什么了?