Why does can't I run any npm stuff in terminal?

It’s just now that I got this error and I can’t find anything that could work.
The output is here:

Terminal logs
/app/node_modules/.bin/node: 8: /app/node_modules/.bin/node: /app/node_modules/.bin/../../../rbd/pnpm-volume/4bc6712a-472b-4250-a13f-38fbcf892c4f/node_modules/node/bin/node: not found

Does anyone have a idea on how to fix this?
Or is this something to do with glitch?

Hmm could I see your package.json file?

This issue could be because you made your project a node project while the terminal was open (which has happened to me) try closing and opening the terminal again?

1 Like
{
  "name": "hello-express",
  "version": "0.0.1",
  "description": "A simple Node app built on Express, instantly up and running.",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
  "dependencies": {
    "express": "^4.17.1",
    "discord.js": "^12.2.0",
    "node": "^14.0.0",
    "dotenv": "^8.2.0",
    "quick.db": "^7.1.1"
  },
  "engines": {
    "node": "10.x"
  },
  "repository": {
    "url": "https://glitch.com/edit/#!/hello-express"
  },
  "license": "MIT",
  "keywords": [
    "node",
    "glitch",
    "express"
  ]
}

The same happens in logs. (not terminal)

/app/node_modules/.bin/node: 8: /app/node_modules/.bin/node: /app/node_modules/.bin/../../../rbd/pnpm-volume/4bc6712a-472b-4250-a13f-38fbcf892c4f/node_modules/node/bin/node: not found

So I just made a new project and copied all scripts to the new project, and it worked fine.