npm does not support Node.js v10.15.3

What I Wanted to Do

I was trying to build this package https://github.com/wzr1337/rsi.demo according to its README.md file. As per the instructions there, I issued the command “npm run build”.

What Happened Instead

I got the following warning lines.

npm WARN npm npm does not support Node.js v10.15.3
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can’t make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/

Reproduction Steps

  1. Download https://github.com/wzr1337/rsi.demo/archive/0.2.1.tar.gz. Extract the archive and from within a command prompt change directory to the extracted folder.
  2. Run `npm install’.
  3. Run `npm run build’.

Details

This’s from a node installation on windows 10 64-bit.

Platform Info

$ npm --versions
{ 'rsi.demo': '0.2.1',
  npm: '6.9.0',
  ares: '1.15.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '64',
  napi: '3',
  nghttp2: '1.34.0',
  node: '10.15.3',
  openssl: '1.1.0j',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.2',
  v8: '6.8.275.32-node.51',
  zlib: '1.2.11' }
$ node -p process.platform
win32

A dependency, @rsi/serviceregistry@0.2.0, is installing an older version of npm (5.8.0, the last version before this was fixed) for some reason, making it end up in node_modules/.bin which has a higher priority than the normal $PATH in lifecycle scripts. Since this isn’t a problem with npm itself I’ll move it to #support.

3 Likes

Thanks. I’ve submitted a patch to @rsi/serviceregistry upstream to fix the problem.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.