reactを勉強中ですが、既存のアプリにreduxをinstall しようとするとエラーが出てきて(warnも大量に出てきた)うまくいきません。エラーを解決してreduxをインストールするにはどうすればいいでしょうか?
npm install --save redux
初回 npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-03-24T23_16_48_222Z-debug.log もう一度やってみた npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/vagrant/workspace/js_app/react_app/node_modules/webpack-dev-server/node_modules/glob-parent/node_modules/is-glob/package.json.1242749460 npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/home/vagrant/workspace/js_app/react_app/node_modules/webpack-dev-server/node_modules/glob-parent/node_modules/is-glob/package.json.1242749460' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-03-24T23_48_03_286Z-debug.log
package.json { "name": "react_app", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "react": "^16.13.1", "react-dom": "^16.13.1", "react-scripts": "3.4.1" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": "react-app" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }
あなたの回答
tips
プレビュー