Yeni yeni react.js öğrenmeye çalışıyorum. Dökümantasyonu takip ederek kurulum sağlıyorum.
npx create-react-app my-app
Kurulum sırasında
removed 1 package and audited 1928 packages in 38.025s
found 5 vulnerabilities (3 moderate, 2 high)
run npm audit fix
to fix them, or npm audit
for details
şeklinde bir hata alıyorum.
Npm audit fix çalıştırdığımda ise
npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.14.5 requires a peer of @babel/core@7.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN @pmmmwh/react-refresh-webpack-plugin@0.4.3 requires a peer of type-fest@0.13.1 but none is installed. You must install peer dependencies yourself.
npm WARN @pmmmwh/react-refresh-webpack-plugin@0.4.3 requires a peer of webpack-hot-middleware@2.x but none is installed. You must install peer dependencies yourself.
npm WARN @pmmmwh/react-refresh-webpack-plugin@0.4.3 requires a peer of webpack-plugin-serve@0.x || 1.x but none is installed. You must install peer dependencies yourself.
npm WARN jest-config@26.6.3 requires a peer of ts-node@>=9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jsdom@16.6.0 requires a peer of canvas@2.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-scripts@4.0.3 requires a peer of typescript@3.2.1 || 4 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@10.2.0 requires a peer of fibers@>= 3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@10.2.0 requires a peer of node-sass@4.0.0 || 5.0.0 || 6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@10.2.0 requires a peer of sass@1.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.5.3 requires a peer of bufferutil@4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.5.3 requires a peer of utf-8-validate@5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
up to date in 82.494s
fixed 0 of 5 vulnerabilities in 1928 scanned packages
5 vulnerabilities required manual review and could not be updated
şeklinde bir sonuç alıyorum.
npm start çalıştırdığımda
E:\javascriptStudy\my-app\node_modules\depd\index.js:399
throw new TypeError('argument fn must be a function')
^
TypeError: argument fn must be a function
at Function.wrapfunction [as function] (E:\javascriptStudy\my-app\node_modules\depd\index.js:399:11)
at populateConstructorExports (E:\javascriptStudy\my-app\node_modules\http-errors\index.js:264:45)
at Object.<anonymous> (E:\javascriptStudy\my-app\node_modules\http-errors\index.js:30:1)
at Module.compile (internal/modules/cjs/loader.js:776:30)
at Object.Module.extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (E:\javascriptStudy\my-app\node_modules\send\index.js:15:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-app@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-app@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\saltu\AppData\Roaming\npm-cache_logs\2021-07-10T20_40_51_610Z-debug.log
şeklinde bir sonuç alıyorum.
Bir türlü çözüm bulamadım, daha önce bu sıkıntıları yaşayan ve yardımcı olabilecek biri var mı?