我正在努力学习React,并从私有回购开始.
我在回购协议的目录中运行了yarn start
,但收到了错误消息:
yarn run v1.13.0
error Command "start" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
我安装了 node 和Yarn .
对于 node :
v10.15.0
node is /usr/local/bin/node
对于Yarn :
1.13.0
yarn is /usr/local/bin/yarn
我试图重新安装node和Thread,但收到了相同的错误消息.此外,我试图通过yarn cache clean
消除这种可能性,但似乎没有任何效果.
package.json
包含以下内容:
{
"name": "02-Manipulating-Strings",
"version": "1.0.0",
"author": "ssaunier",
"license": "UNLICENSED",
"private": true,
"devDependencies": {
"eslint": "^4.7.2",
"eslint-config-airbnb-base": "^12.0.0",
"eslint-plugin-import": "^2.7.0",
"jest": "^21.1.0"
},
"scripts": {
"test": "(eslint lib || true) && jest"
}
}
目录的组织方式如下: