question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compiling error on first 'npm start'

See original GitHub issue

Is this a bug report?

Yes

These 3 steps:

npm install -g create-react-app

create-react-app my-app
cd my-app/
npm start

Resulted in:

Failed to compile.

./src/index.js Module build failed: Error: Failed to load plugin import: Cannot find module ‘eslint-plugin-import’

I have not edited the directories or files at all. Simply followed the first 3 steps in the Getting Started instructions

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
engmyahyacommented, Dec 25, 2017

I faced the same when the first installation and fixed as followed up just at @latest for every installation done i.e. npm install _LibName_@latest -g --save-dev

1reaction
LeonDWongcommented, Dec 25, 2017

Install latest version of npm and remove node_moudles folder and lockfile, then re-install packages, the issue can be fixed. Here’s the command for Unix-like OS:

> npm -g update npm
> rm -rf ./node_modules && rm ./package-lock.json
> npm i
Read more comments on GitHub >

github_iconTop Results From Across the Web

npm start, Failed to compile - create react app - Stack Overflow
Try deleting 'node_modules' folder and 'package-lock.json' file. Then run 'npm i'. This worked for me.
Read more >
Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. This can be caused by...
Read more >
"The NPM script 'start' exited without indicating that the create ...
When I try to run my project I always get this error: 181477-image.png. I've tried everything I've seen online, and it still fails....
Read more >
Error when running npm run build : r/react - Reddit
Error when running npm run build · Delete package-lock.json (not package.json!) and/or yarn. · Delete node_modules in your project folder. · Remove ...
Read more >
How to fix start script error when running npm start command
In this video we are going to learn how to fix start script error when running npm start command.Thank You For Visiting My...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found