Glitch Problem NPM

Hey, I have a problem.
I made a giveaway Discord Bot but when I refresh, he says npm installing and this:
npm WARN npm npm does not support Node.js v14.15.1

11:36 AM

npm WARN npm You should probably upgrade to a newer version of node as we

11:36 AM

npm WARN npm can’t make any promises that npm will work with this version.

11:36 AM

npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12.

11:36 AM

npm WARN npm You can find the latest version at https://nodejs.org/

11:36 AM

npm ERR! cb.apply is not a function

11:36 AM

11:36 AM

npm ERR! A complete log of this run can be found in:

11:36 AM

npm ERR! /app/.npm/_logs/2021-02-07T10_36_40_388Z-debug.log

Help me

Hey there!
Looks like your node version is too high! I’ll pull a code snippet that’ll save you, but be careful!

Alright!
Add this to the bottom of your package.json:

"engines": {
   "node": "12.x"
 }

Should work. Happy glitching!

1 Like

Au contraire, the problem is is that the npm version is too low.
To the op: you should ensure that the node version is set to 14.x rather than a specific version, and you should try running enable-npm in case pnpm is enabled, as that doesn’t support node 13 or 14, whereas Glitch does. If the problem is still occuring, try running apt update && apt upgrade in tge terminal. If all else fails, use node 12, but I suspect that if you’re using node 14, you’re using it for a reason.

1 Like

not works :confused:

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