Specify requirement to use Node.js version 16.x
See original GitHub issueI tried this on Node v14 and it failed to run, erroring with
couldn't do the magic. please read the notes in README.md, restart your device and try again
TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: base64url
at Buffer.toString (buffer.js:803:11)
at /Users/robin/dev/margerine/src/exploit.js:1:81335
at new Promise (<anonymous>)
at /Users/robin/dev/margerine/src/exploit.js:1:76415
at async /Users/robin/dev/margerine/margerine.js:49:16
at async wrapSentry (/Users/robin/dev/margerine/src/utils.js:134:5) {
code: 'ERR_UNKNOWN_ENCODING'
}
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How can I specify the required Node.js version in package.json?
You can set the engines field in your package.json and set requirements for either node or npm versions or both: "engines" : {...
Read more >Node.js default version is now 16.x - Heroku Dev Center
You should always specify a version of Node (as illustrated here), but if you do not, Node.js 16 will be installed for you....
Read more >How to define the required Node.js version in package.json?
To define the required Node.js version in the package.json file we will have to go through few simple steps:.
Read more >Download - Node.js
Latest LTS Version: 18.12.1 (includes npm 8.19.2). Download the Node.js source code or a pre-built installer for your platform, and start developing today....
Read more >Switching between Node versions during development
We compare and contrast two popular Node version managers that can help you more easily switch between Node versions during development.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 for engines definition - not everyone uses nvm (although I do).
On Sat, 26 Mar 2022, 10:32 Philipp Molitor, @.***> wrote:
You could also improve at the following points:
when using NVM, add a
.nvmrc
file, which tells NVM which version is required https://stackoverflow.com/questions/57110542/how-to-write-a-nvmrc-file-which-automatically-change-node-versionFor plain Node.js, add the
engines
property to thepackage.json
: https://docs.npmjs.com/cli/v7/configuring-npm/package-json#engines