Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #9614
Closed
Open
Issue created Sep 09, 2020 by Administrator@rootContributor

installation ends abruptly with notice to update Node

Created by: mbkv

Describe the bug

I installed node with "snap" for ubuntu. npx create-react-app fails claiming I need to update my node version

You are running Node v15.0.0-nightly202009086f2af08245.
Create React App requires Node >=4 or higher. 
Please update your version of Node.

This is most likely coming from the following check. you might be able to get semver to coerce the string first, and then perform the check

Which terms did you search for in User Guide?

both "npx" and "You are running Node"

Environment

  current version of create-react-app: 3.4.1
  running from $HOME/.config/yarn/global/node_modules/create-react-app
(node:133962) [DEP0139] DeprecationWarning: Calling process.umask() with no arguments is prone to race conditions and is a potential security vulnerability.
(Use `node --trace-deprecation ...` to show where the warning was created)

  System:
    OS: Linux 5.4 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (16) x64 AMD Ryzen 7 1800X Eight-Core Processor
  Binaries:
    Node: Not Found
    Yarn: Not Found
    npm: Not Found
  Browsers:
    Chrome: 84.0.4147.135
    Firefox: 80.0.1
  npmPackages:
    react: 16.13.1 => 16.13.1 
    react-dom: 16.13.1 => 16.13.1 
    react-scripts: 0.9.x => 0.9.5 
  npmGlobalPackages:
    create-react-app: Not Found

I don't know why node, yarn, npm show as not found. but

$ node --version
v15.0.0-nightly202009086f2af08245
$ npm --version
6.14.8
$ yarn --version
1.22.5

Steps to reproduce

  1. install node on an ubuntu machine, using snap
  2. npx create-react-app $(mktemp -d)

Expected behavior

for it to not fail

Actual behavior

it is failing

Assignee
Assign to
Time tracking