React App не открывается в браузере с использованием запуска пряжи или npm запуска
узла v 12.14.1 npm v 6.13.4
Шаги:
- npm install -g create-реагировать-приложение
- npx создать-реагировать-приложение hello-world
- cd hello-world
- запуск пряжи
Я получаю это сообщение:
yarn run v1.17.3
$ react-scripts start
internal/modules/cjs/loader.js:796
throw err;
^
Error: Cannot find module './_baseGetTag'
Require stack:
- /Users/punchcode/Projects/hello-world/node_modules/lodash/isFunction.js
- /Users/punchcode/Projects/hello-world/node_modules/last-call-webpack-plugin/src/index.js
- /Users/punchcode/Projects/hello-world/node_modules/optimize-css-assets-webpack-plugin/src/index.js
- /Users/punchcode/Projects/hello-world/node_modules/react-scripts/config/webpack.config.js
- /Users/punchcode/Projects/hello-world/node_modules/react-scripts/scripts/start.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/Users/punchcode/Projects/hello-world/node_modules/lodash/isFunction.js:1:18)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/punchcode/Projects/hello-world/node_modules/lodash/isFunction.js',
'/Users/punchcode/Projects/hello-world/node_modules/last-call-webpack-plugin/src/index.js',
'/Users/punchcode/Projects/hello-world/node_modules/optimize-css-assets-webpack-plugin/src/index.js',
'/Users/punchcode/Projects/hello-world/node_modules/react-scripts/config/webpack.config.js',
'/Users/punchcode/Projects/hello-world/node_modules/react-scripts/scripts/start.js'
]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
➜ hello-world git:(master)