etclabscore / jade-desktop

👤 User Interface for Jade Service Runner 👟
Apache License 2.0
6 stars 2 forks source link

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

Open meowsbits opened 5 years ago

meowsbits commented 5 years ago

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

meowsbits commented 5 years ago

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

meowsbits commented 5 years ago

The instructions seem to have worked.

meowsbits commented 5 years ago

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?