From a4f354c7e1f01f948f0ffa6f298a20ccf2cbceef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Holeczek?= Date: Thu, 9 Dec 2021 11:15:36 +0100 Subject: [PATCH] fix: Node 17 openssl issue --- README.md | 14 +++++++++++++- package.json | 6 ++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8d4cdaa..620b341 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,10 @@ $ yarn install ``` bash # dev server with hot reload at http://localhost:3000 -$ npm start +$ npm start + +# if you use Node 17+ use this command instead of `npm start` +$ npm run start:n17 ``` or @@ -74,6 +77,9 @@ or ``` bash # dev server with hot reload at http://localhost:3000 $ yarn start + +# if you use Node 17+ use this command instead of `yarn start` +$ yarn start:n17 ``` Navigate to [http://localhost:3000](http://localhost:3000). The app will automatically reload if you change any of the source files. @@ -85,6 +91,9 @@ Run `build` to build the project. The build artifacts will be stored in the `bui ```bash # build for production with minification $ npm run build + +# if you use Node 17+ use this command instead of `build run build` +$ npm run build:n17 ``` or @@ -92,6 +101,9 @@ or ```bash # build for production with minification $ yarn build + +# if you use Node 17+ use this command instead of `yarn build` +$ yarn build:n17 ``` ## What's included diff --git a/package.json b/package.json index 63fbc95..622a404 100644 --- a/package.json +++ b/package.json @@ -13,11 +13,13 @@ "license": "MIT", "author": "The CoreUI Team (https://github.com/orgs/coreui/people)", "scripts": { - "build": "react-scripts --openssl-legacy-provider build", + "build": "react-scripts build", + "build:n17": "react-scripts --openssl-legacy-provider build", "changelog": "auto-changelog --starting-version 4.1.0 --commit-limit false --hide-credit", "eject": "react-scripts eject", "lint": "eslint \"src/**/*.js\"", - "start": "react-scripts --openssl-legacy-provider start", + "start": "react-scripts start", + "start:n17": "react-scripts --openssl-legacy-provider start", "test": "react-scripts test", "test:cov": "npm test -- --coverage --watchAll=false", "test:debug": "react-scripts --inspect-brk test --runInBand"