Created by: tabrindle
This PR fixes a few outstanding issues, and supersedes https://github.com/facebook/create-react-app/pull/3859 and https://github.com/facebook/create-react-app/pull/3797.
There were a couple issues with envinfo, and the issue template that never got resolved - this is my attempt to fix all of that. Also, envinfo has been rewritten for size and speed since originally integrated, and a few more features have been added. The command is the same create-react-app --info
, but now returns more info, like this:
System:
OS: macOS High Sierra 10.13
CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Binaries:
Node: 8.11.0 - ~/.nvm/versions/node/v8.11.0/bin/node
Yarn: 1.5.1 - ~/.yarn/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v8.11.0/bin/npm
Browsers:
Chrome: 65.0.3325.181
Firefox: 59.0.2
Safari: 11.0
npmPackages:
react: ^16.3.2 => 16.3.2
react-dom: ^16.3.2 => 16.3.2
react-scripts: 1.1.4 => 1.1.4
npmGlobalPackages:
create-react-app: 1.5.2
Since you no longer recommend installing CRA (using via npx instead), also adding npx envinfo --preset create-react-app
might be a faster option. envinfo is extremely light and fast via npx, and can be locked to a specific version - npx envinfo@5.2.0 --preset create-react-app
, or just installed directly yarn global add envinfo && envinfo --preset create-react-app
in the case of pre npm 5.2 installs. I can add this to the template upon request.
@bondz This may interest you.