When I rename a react project, then change its name in package.json and package-lock.json, but when I run npm start command, it throws me the following error:
sh: react-scripts: command not found
I have found that usually that error is fixed by reinstalling node_modules folder. But when I run npm install it throws me the following error:
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! sh: node-gyp-build: command not found
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/manuferreras/.npm/_logs/2022-01-26T13_27_13_876Z-debug.log
Is there a solution for this?
Check npm version with command "npm -v"? You may need to reinstall npm
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.