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

Errors during installation #89

Closed
RaiMX opened this issue Feb 13, 2020 · 14 comments
Closed

Errors during installation #89

RaiMX opened this issue Feb 13, 2020 · 14 comments

Comments

@RaiMX
Copy link

RaiMX commented Feb 13, 2020

I've tried to install RMW on both of my machines (Windows and macOS) and got the same error during installation

[4/4] 🔨  Building fresh packages...
[-/4] ⠄ waiting...
[-/4] ⠄ waiting...
[3/4] ⠄ grpc
error /Users/raimx/Desktop/www/prodcon-web/node_modules/grpc: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build --library=static_library
Arguments: 
Directory: /Users/raimx/Desktop/www/prodcon-web/node_modules/grpc
...

my npm -v
6.13.7

@TarikHuber
Copy link
Collaborator

Hi @RaiMX
have you tried to install a clean Create React App?
That looks more like a bug in thes scripts of them.

@RaiMX
Copy link
Author

RaiMX commented Feb 13, 2020

Hi @RaiMX
have you tried to install a clean Create React App?
That looks more like a bug in thes scripts of them.

I have done npm uninstall -g create-react-app
then did npm init react-app prodcon-web --template rmw
Then this error occurred

@RaiMX
Copy link
Author

RaiMX commented Feb 13, 2020

Here is the output (a little bit more):

Installing template dependencies using yarnpkg...
yarn add v1.19.1
[1/4] 🔍  Resolving packages...
warning @material-ui/core > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
warning material-ui-pickers@2.2.4: You can now upgrade to @material-ui/pickers. Documentation for v2 can be found at https://material-ui-pickers-v2.dmtr-kovalenko.now.sh/
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > @testing-library/user-event@7.2.1" has unmet peer dependency "@testing-library/dom@>=5".
warning " > @material-ui/pickers@3.2.10" has unmet peer dependency "@date-io/core@^1.3.6".
warning " > material-ui-image@3.2.2" has incorrect peer dependency "@material-ui/icons@^1.0.0 || ^3.0.0".
warning " > material-ui-image@3.2.2" has incorrect peer dependency "@material-ui/core@^1.0.0 || ^2.0.0 || ^3.0.0".
warning " > material-ui-pickers@2.2.4" has incorrect peer dependency "@material-ui/core@^3.2.0".
warning " > redux-form-material-ui@5.0.0-beta.3" has incorrect peer dependency "redux-form@7".
warning " > redux-form-material-ui@5.0.0-beta.3" has incorrect peer dependency "@material-ui/core@1".
[4/4] 🔨  Building fresh packages...
[-/4] ⡀ waiting...
[-/4] ⡀ waiting...
[3/4] ⡀ grpc
error /Users/raimx/Desktop/www/prodcon_web/node_modules/grpc: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build --library=static_library
Arguments: 
Directory: /Users/raimx/Desktop/www/prodcon_web/node_modules/grpc
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.14.0
node-pre-gyp info using node@13.8.0 | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp info check checked for "/Users/raimx/Desktop/www/prodcon_web/node_modules/grpc/src/node/extension_binary/node-v79-darwin-x64-unknown/grpc_node.node" (not found)
node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v79-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for grpc@1.24.2 and node@13.8.0 (node-v79 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error connect ETIMEDOUT 104.28.23.74:443 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@13.8.0 | darwin | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@13.8.0 | darwin | x64
gyp info find Python using Python version 2.7.10 found at "/usr/bin/python"
gyp info spawn /usr/bin/python

Especially this line

node-pre-gyp WARN Hit error connect ETIMEDOUT 104.28.23.74:443 

I guess it is because of the connection timeout

@TarikHuber
Copy link
Collaborator

Can you pls try a clean Create React App install without any template and check if you get the same error there

@RaiMX
Copy link
Author

RaiMX commented Feb 13, 2020

Can you pls try a clean Create React App install without any template and check if you get the same error there

Did that and it installed OK
used following command npm init react-app test-app

(base) KILLERmacs-MacBook-Pro:www raimx$ npm init react-app test-app
npx: installed 99 in 10.869s

Creating a new React app in /Users/raimx/Desktop/www/test-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.19.1
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning "react-scripts > eslint-config-react-app@5.2.0" has incorrect peer dependency "eslint-plugin-flowtype@3.x".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 29 new dependencies.
info Direct dependencies
├─ cra-template@1.0.1
├─ react-dom@16.12.0
├─ react-scripts@3.3.1
└─ react@16.12.0
info All dependencies
├─ @babel/plugin-proposal-class-properties@7.8.3
├─ @babel/plugin-proposal-decorators@7.8.3
├─ @babel/plugin-proposal-numeric-separator@7.8.3
├─ @babel/plugin-syntax-decorators@7.8.3
├─ @babel/plugin-syntax-flow@7.8.3
├─ @babel/plugin-syntax-numeric-separator@7.8.3
├─ @babel/plugin-transform-flow-strip-types@7.8.3
├─ @babel/plugin-transform-runtime@7.8.3
├─ @babel/plugin-transform-typescript@7.8.3
├─ @babel/preset-typescript@7.8.3
├─ @types/color-name@1.1.1
├─ babel-plugin-macros@2.8.0
├─ babel-plugin-named-asset-import@0.3.6
├─ babel-preset-react-app@9.1.1
├─ core-js@3.6.4
├─ cra-template@1.0.1
├─ eslint-config-react-app@5.2.0
├─ filesize@6.0.1
├─ fork-ts-checker-webpack-plugin@3.1.1
├─ open@6.4.0
├─ picomatch@2.2.1
├─ pkg-up@3.1.0
├─ react-app-polyfill@1.0.6
├─ react-dev-utils@10.1.0
├─ react-dom@16.12.0
├─ react-error-overlay@6.0.5
├─ react-scripts@3.3.1
├─ react@16.12.0
└─ scheduler@0.18.0
✨  Done in 24.69s.

Installing template dependencies using yarnpkg...
yarn add v1.19.1
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-scripts > eslint-config-react-app@5.2.0" has incorrect peer dependency "eslint-plugin-flowtype@3.x".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > @testing-library/user-event@7.2.1" has unmet peer dependency "@testing-library/dom@>=5".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 18 new dependencies.
info Direct dependencies
├─ @testing-library/jest-dom@4.2.4
├─ @testing-library/react@9.4.0
├─ @testing-library/user-event@7.2.1
├─ react-dom@16.12.0
└─ react@16.12.0
info All dependencies
├─ @sheerun/mutationobserver-shim@0.3.2
├─ @testing-library/dom@6.12.2
├─ @testing-library/jest-dom@4.2.4
├─ @testing-library/react@9.4.0
├─ @testing-library/user-event@7.2.1
├─ @types/prop-types@15.7.3
├─ @types/react-dom@16.9.5
├─ @types/react@16.9.19
├─ @types/testing-library__dom@6.12.1
├─ @types/testing-library__react@9.1.2
├─ css.escape@1.5.1
├─ csstype@2.6.8
├─ min-indent@1.0.0
├─ react-dom@16.12.0
├─ react@16.12.0
├─ redent@3.0.0
├─ strip-indent@3.0.0
└─ wait-for-expect@3.0.2
✨  Done in 7.23s.
Removing template package using yarnpkg...

yarn remove v1.19.1
[1/2] 🗑  Removing module cra-template...
[2/2] 🔨  Regenerating lockfile and installing missing dependencies...
warning " > @testing-library/user-event@7.2.1" has unmet peer dependency "@testing-library/dom@>=5".
warning "react-scripts > eslint-config-react-app@5.2.0" has incorrect peer dependency "eslint-plugin-flowtype@3.x".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
success Uninstalled packages.
✨  Done in 7.77s.

Initialized a git repository.

Success! Created test-app at /Users/raimx/Desktop/www/test-app
Inside that directory, you can run several commands:

  yarn start
    Starts the development server.

  yarn build
    Bundles the app into static files for production.

  yarn test
    Starts the test runner.

  yarn eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd test-app
  yarn start

Happy hacking!

@TarikHuber
Copy link
Collaborator

Did you try the steps from #37

@RaiMX
Copy link
Author

RaiMX commented Feb 13, 2020

Did you try the steps from #37

After following steps from comment, in the application folder I see only following files and folders:

  • package.json
  • package-lock.json
  • node_modules
  • yarn.lock

Nothing else

@TarikHuber
Copy link
Collaborator

Did you try it without yarn?

@RaiMX
Copy link
Author

RaiMX commented Feb 14, 2020

Did you try it without yarn?

I don't know how to do it

@TarikHuber
Copy link
Collaborator

I mean to do it with npm

@RaiMX
Copy link
Author

RaiMX commented Mar 4, 2020

errors occur after

grpc@1.24.2 install L:\wamp64\www\react-most-wanted\node_modules\grpc
node-pre-gyp install --fallback-to-build --library=static_library

@TarikHuber
Copy link
Collaborator

?

@RaiMX
Copy link
Author

RaiMX commented Mar 4, 2020

?

Can you please tell your version of:
nodejs
npm
what operatin system

@TarikHuber
Copy link
Collaborator

I'm always on the LTS version

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

No branches or pull requests

2 participants