Open najibullahjafari opened 4 months ago
When I run the project after npm install there was the bellow error: 'GENERATE_SOURCEMAP' is not recognized as an internal or external command,
npm install
'GENERATE_SOURCEMAP' is not recognized as an internal or external command,
package.json
I have these scripts in package.json "scripts": { "start": " GENERATE_SOURCEMAP=false react-scripts start", "build": "GENERATE_SOURCEMAP=false react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start" }
"scripts": { "start": " GENERATE_SOURCEMAP=false react-scripts start", "build": "GENERATE_SOURCEMAP=false react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start" }
I found that the error can be fixed by changing this "start": " GENERATE_SOURCEMAP=false react-scripts start", to "start": "set GENERATE_SOURCEMAP=false && react-scripts start",
"start": " GENERATE_SOURCEMAP=false react-scripts start",
"start": "set GENERATE_SOURCEMAP=false && react-scripts start",
Summary
When I run the project after
npm install
there was the bellow error:'GENERATE_SOURCEMAP' is not recognized as an internal or external command,
Page
package.json
Details
I have these scripts in package.json
"scripts": { "start": " GENERATE_SOURCEMAP=false react-scripts start", "build": "GENERATE_SOURCEMAP=false react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start" }