【发布时间】:2017-05-23 20:21:51
【问题描述】:
我在阅读 Yarn 博客,发现它支持 yarn create,就像 create-react-app 一样。
https://yarnpkg.com/blog/2017/05/12/introducing-yarn/
我在本地尝试过......基本上使用以下 package.json 制作了非常简单的应用程序。
{
"name": "create-test-app",
"version": "1.0.0",
"bin": {
"create-test-app": "./index.js"
},
"dependencies": {
...
}
}
但不知何故,它抱怨找不到包裹。 “错误在“npm”注册表上找不到包“create-test-app”。
为了使用“yarn create”,我应该上传到“npm”注册表吗?不能在本地试试?提前致谢。
【问题讨论】:
-
如果你只是想通过yarn使用create-react-app,试试
yarn create react-app my-app
标签: javascript node.js npm create-react-app yarnpkg