use-adapt / adapt

A planning tool for using diabetes-related open-source projects.
https://use-adapt.github.io/
4 stars 3 forks source link

Package install fails #20

Closed zmarvel closed 7 years ago

zmarvel commented 7 years ago

The following error occurs after yarn install when running yarn start:

Failed to compile.

Error in ./src/index.js
Module build failed: Error: Cannot read config file: /home/zack/src/adapt2/node_modules/react-scripts/.eslintrc
Error: ENOENT: no such file or directory, open '/home/zack/src/adapt2/node_modules/react-scripts/.eslintrc'
    at Error (native)
 @ multi main

The missing .eslintrc can be downloaded from upstream and manually placed in node_modules/react-scripts. Then yarn start will work.

This might be a bug in the package manager. It exists under the current version of react-scripts, 0.8.5, and the version we were using before I bumped it, 0.8.3. My environment:

Steps to reproduce:

  1. Clone the repo cleanly or delete node_modules.
  2. Run yarn install.
  3. Run yarn start.
zmarvel commented 7 years ago

Quick workaround if you have curl installed:

curl https://raw.githubusercontent.com/facebookincubator/create-react-app/master/packages/react-scripts/.eslintrc > node_modules/react-scripts/.eslintrc