Skip to content

installation ends abruptly with notice to update Node #9614

Closed
@mbkv

Description

@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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions