Skip to content

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

@meowsbits

Description

@meowsbits

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

$ npm start
                                                                                                    
> @etclabscore/jade-service-runner-ui@0.0.0-development 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions