Create-react-app: Error: Cannot find module '@csstools/normalize.css' after running npm start command

Created on 24 Apr 2019  Â·  7Comments  Â·  Source: facebook/create-react-app

Is this a bug report?

(write your answer here)

Did you try recovering your dependencies?

(Write your answer here.)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

(paste the output of the command here)

Steps to Reproduce

(Write your steps here:)



    1. 2.
  1. 3.

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Please add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Most helpful comment

Same error here. Did you find the fix?

edit

I just needed to update my create-react-app to version 3.0.0 and my nodejs to the latest version, using nvm on Linux Mint.

Cheers

All 7 comments

Same error here. Did you find the fix?

edit

I just needed to update my create-react-app to version 3.0.0 and my nodejs to the latest version, using nvm on Linux Mint.

Cheers

yes

On Fri, Apr 26, 2019 at 1:08 AM Dušan Marsa notifications@github.com
wrote:

Still getting error

Failed to compile.
./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
Error: Cannot find module '@csstools/normalize.css'

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/create-react-app/issues/6886#issuecomment-486809863,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALVL3T7SOAYJ3ACIKMIV5HTPSICDNANCNFSM4HICUHUA
.

Still getting an error. Using create-react-app version 3.0.0 and nodejs v8.10.0 on Ubuntu 18.04 LTS. Log after running npm run build:

Creating an optimized production build...
Failed to compile.

./src/index.css
Error: Cannot find module '@csstools/normalize.css'



npm ERR! Linux 4.15.0-1029-gcp
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script 'react-scripts build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the frontend package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     react-scripts build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs frontend
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls frontend
npm ERR! There is likely additional logging output above.

update the create react app like this:

sudo npm update -g create-react-app

and after that create your react app

create-react-app <app-name>

works on ubuntu 18.04 LTS with default node and npm

Thanks. I solved it by uninstalling/reinstalling both node and npm using nvm instead of standard Ubuntu distributions. Then in my project folder I ran:
npm cache clean --force
rm -rf node_modules and rm package-lock.json
npm install
npm run build

you just need to update the npm and create-react-app

yes unistall entire directory and install again

On Thu, Apr 25, 2019, 8:56 AM César Nascimento notifications@github.com
wrote:

Same error here. Did you find the fix?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/create-react-app/issues/6886#issuecomment-486506186,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALVL3T7DPZCYH3IFZRIKTWTPSEQGFANCNFSM4HICUHUA
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oltsa picture oltsa  Â·  3Comments

ap13p picture ap13p  Â·  3Comments

Aranir picture Aranir  Â·  3Comments

wereHamster picture wereHamster  Â·  3Comments

DaveLindberg picture DaveLindberg  Â·  3Comments