Specify Node.js version for npm pages

Is there a way to specify which Node version should be used as default on npm package pages?

I have this in my package.json, yet the “try it out” link always defaults to Node v4:

  "engines": {
    "node": ">=6"
  },

If this isn’t implemented, I’d suggest looking at the engines key for the default version, and also allowing it to be overridden with a URL parameter.

(Props for the great service.)

Can you tell us what package this is? This SHOULD already work, not sure what is up.

Thanks,

Francisco

The package is unix-path: npmjs.com, runkit.com.

Hi @lleaff. I think I know what the issue is on our end and will push a fix shortly. Thanks for your patience!

1 Like