Skip to content

nodejs mismatch between the two install methods #4512

Closed as not planned
Closed as not planned
@heggland

Description

@heggland

different nodejs versions when I install with curl/npm methods.
I'm just testing on raspberry, which has nodejs version v.12.22.5.
The curl installer just straight up wouldnt work, maybe since its a raspberry I dunno.. It says one need atleast node v12 or newer.
The npm install way says node v14 is required.

curl -fsSL https://code-server.dev/install.sh | sh

curl -fsSL https://code-server.dev/install.sh | sh
Raspbian GNU/Linux 11 (bullseye)
No standalone releases for armv7l.
Falling back to installation from npm.
Installing latest from npm.

Please install npm or yarn to install code-server!
You will need at least node v12 and a few C dependencies.
See the docs https://coder.com/docs/code-server/latest/install#yarn-npm

npm i code-server

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '= 14' },
npm WARN EBADENGINE   current: { node: 'v12.22.5', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.
npm ERR! code 1
npm ERR! path /home/pi/vscode/node_modules/code-server
npm ERR! command failed
npm ERR! command sh -c bash ./postinstall.sh
npm ERR! ERROR: code-server currently requires node v14.
npm ERR! ./postinstall.sh: line 38: FORCE_NODE_VERSION: unbound variable

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2021-11-15T19_59_25_083Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions