ethereum-react-native-boilerplate icon indicating copy to clipboard operation
ethereum-react-native-boilerplate copied to clipboard

yarn install fails with the current yarn.lock

Open akivanc88 opened this issue 3 years ago • 2 comments

4/4]`` 🔨  Building fresh packages...
[14/22] ⠈ postinstall-postinstall
[6/22] ⠈ secp256k1
[15/22] ⠈ react-native-localhost
[4/22] ⠈ better-sqlite3
error /Users/<path redacted>/ethereum-react-native-boilerplate/node_modules/react-native-localhost: Command failed.
Exit code: 1
Command: node scripts/postinstall
Arguments: 
Directory: /Users/<path redacted>/ethereum-react-native-boilerplate/node_modules/react-native-localhost
Output:
/Users/<path redacted>/ethereum-react-native-boilerplate/node_modules/ip/lib/ip.js:385
      details.family = details.family.toLowerCase();
                                      ^
TypeError: details.family.toLowerCase is not a function

Any idea what I am doing wrong here?

akivanc88 avatar May 21 '22 06:05 akivanc88

Hi @akivanc88 , I'm facing the same issue. Do let us know here if you found the solution. I will ping if I got it first.

Amol2496 avatar May 25 '22 11:05 Amol2496

Downgrade Node.js to 17.9.0, see https://github.com/storybookjs/storybook/issues/18010

or better use the 16.15.0 LTS

npm install -g n
sudo n 16.15.0

dFohlen avatar May 30 '22 15:05 dFohlen