Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'npm install .' from scratch causes error with long message #21

Open
meowsbits opened this issue Aug 28, 2019 · 3 comments
Open

'npm install .' from scratch causes error with long message #21

meowsbits opened this issue Aug 28, 2019 · 3 comments
Labels

Comments

@meowsbits
Copy link
Member

meowsbits commented Aug 28, 2019

Describe the bug
Running 'npm install .' on a fresh clone of this dir causes following issue:

$ npm start
                                                                                                    
> @etclabscore/[email protected] start /home/ia/dev/etclabscore/jade-service-runner-ui   
> rescripts start
                                                                                                                  
                                                                                      
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
                                                                                                   
The react-scripts package provided by Create React App requires a dependency:
                                                                                     
  "jest": "24.8.0"                                                                     

Don't try to install it manually: your package manager does it automatically.                       
However, a different version of jest was detected higher up in the tree:

  /home/ia/dev/etclabscore/jade-service-runner-ui/node_modules/jest (version: 24.9.0)
                                                    
Manually installing incompatible versions is known to cause hard-to-debug issues.
                    
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.       
                      
To fix the dependency tree, try following the steps below in the exact order:
                                                                                                            
  1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
  2. Delete node_modules in your project folder.                                                       
  3. Remove "jest" from dependencies and/or devDependencies in the package.json file in your project folder.
  4. Run npm install or yarn, depending on the package manager you use.

To Reproduce

git clone ...
npm install .

Expected behavior
npm should install all the things properly

Desktop (please complete the following information):

$ uname -a
Linux ubp52 5.2.9-050209-lowlatency #201908160940 SMP PREEMPT Fri Aug 16 09:45:23 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
ubp52 ~/dev/etclabscore/jade-service-runner-ui master %=
$ npm -v
3.5.2
ubp52 ~/dev/etclabscore/jade-service-runner-ui master %=
$ node -v
v8.10.0

rel #20

@meowsbits
Copy link
Member Author

I am following the instructions now... and will update when finished...

@meowsbits
Copy link
Member Author

The instructions seem to have worked.

@meowsbits
Copy link
Member Author

meowsbits commented Aug 28, 2019

Ah, nope:

$ npm start

[...]

Failed to compile.

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

Maybe this is new issue worthy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant