create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

npm start is not working

Open Easyvipin opened this issue 6 years ago • 5 comments

$ npm start

[email protected] start C:\Users\om\Documents\Expense tracker\expense-app react-scripts start

c:\Users\om\Documents\Expense tracker\expense-app\node_modules\webpack\lib\node\NodeTemplatePlugin.js:1 ri�+ Qz���KQM▼♦�Es�☺,���n{8b.���∟n�L��G♫♦�u.�u���

SyntaxError: Invalid or unexpected token ←[90m at Module._compile (internal/modules/cjs/loader.js:892:18)←[39m ←[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)←[39m ←[90m at Module.load (internal/modules/cjs/loader.js:812:32)←[39m ←[90m at Function.Module._load (internal/modules/cjs/loader.js:724:14)←[39m ←[90m at Module.require (internal/modules/cjs/loader.js:849:19)←[39m ←[90m at require (internal/modules/cjs/helpers.js:74:18)←[39m at Object. (C:\Users\om\Documents\Expense tracker\expense-app\node_modules\←[4mhtml-webpack-plugin←[24m\lib\compiler.js:14:28) ←[90m at Module._compile (internal/modules/cjs/loader.js:956:30)←[39m ←[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)←[39m ←[90m at Module.load (internal/modules/cjs/loader.js:812:32)←[39m npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: react-scripts start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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\om\AppData\Roaming\npm-cache_logs\2020-06-24T10_58_14_181Z-debug.log

Easyvipin avatar Jun 24 '20 11:06 Easyvipin

Can you attach the log?

dhanushkac avatar Jun 25 '20 15:06 dhanushkac

hey @Easyvipin try npm cache clean --force then delete your node_modules dir and package-lock.json file. => run npm install then run npm start

ShahrozTanveer avatar Jun 29 '20 18:06 ShahrozTanveer

Thanks I cleaned the cache and now it's working

Easyvipin avatar Jun 29 '20 18:06 Easyvipin

https://github.com/facebook/create-react-app/issues/9227#issue-646496381

ShahrozTanveer avatar Jun 29 '20 18:06 ShahrozTanveer

https://github.com/facebook/create-react-app/issues/9225#issuecomment-651292955

ShahrozTanveer avatar Jun 29 '20 18:06 ShahrozTanveer