--scripts-version not working with forked react-scripts
Created by: yesmeck
According to @gaearon's tweet https://twitter.com/dan_abramov/status/774888111927091200
I forked react-scripts
to another package named feeble-scripts
and tried running create-react-app myapp --scripts-version feeble-scripts
, because CRA reads react-scripts
's package.json in https://github.com/facebookincubator/create-react-app/blob/master/global-cli/index.js#L149-L155, so the command fails end with Error: Cannot find module '/path/to/myapp/node_modules/react-scripts/package.json'
.