Hello Cockpit Community,
Can someone help me and tell me why i can’t start local server when i run yarn install.
When i run yarn start, am getting an error here .
namwanza@Ronnie:/mnt/c/CockpitCMS-React-Static/react-app$ yarn start
yarn run v1.12.3
$ sh -ac '. .env.local; react-static start’
sh: 1: .: .env.local: not found
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Here is my package.json
{
“name”: “react-static-cockpit-example”,
“version”: “1.0.1”,
“main”: “index.js”,
“license”: “MIT”,
“scripts”: {
“start”: “sh -ac ‘. .env.local; react-static start’”,
“stage”: “react-static build --staging”,
“build.dev”: “sh -ac ‘. .env.development; react-static build’”,
“build.prod”: “sh -ac ‘. .env.production; react-static build’”,
“bundle”: “react-static bundle”,
“export”: “react-static export”,
“serve”: “serve dist -p 3000”,
“deploy.dev”: “yarn build.dev && rm -rf …/public/html/* && cp -rf dist/* …/public/html/”,
“deploy.prod”: “yarn build.prod && rm -rf …/docs/* && cp -rf dist/* …/docs/”
},
“dependencies”: {
“axios”: “^0.18.0”,
“bootstrap”: “^4.1.3”,
“formik”: “^1.3.1”,
“graphql-request”: “^1.8.2”,
“htmr”: “^0.7.0”,
“leaflet”: “^1.3.4”,
“react”: “^16.0.0”,
“react-dom”: “^16.0.0”,
“react-highlight.js”: “^1.0.7”,
“react-hot-loader”: “^4.0.0-beta.21”,
“react-leaflet”: “^2.1.0”,
“react-player”: “^1.6.6”,
“react-router”: “^4.2.0”,
“react-static”: “^5.9.12”,
“reactstrap”: “^6.5.0”,
“styled-components”: “^3.4.10”
},
“devDependencies”: {
“eslint-config-react-tools”: “1.x.x”,
“serve”: “>=7.0.0”
}
}