[Solved] Project stuck on 'Starting'

{
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
  "dependencies": {
    "discord.js": "^12.1.1",
    "mineflayer": "^2.11.0",
    "three": "^1.58.1",
    "vec3": "^0.1.3",
    "express": "^4.17.1"
  }
}

Hm I think the version number for three doesn’t exist, so installing the packages is failing.

Try replacing the three version number, like this:

"three": "^0.115.0",

Same error, Error: Cannot find module 'express'

Also I do not require(“three”) in NodeJS since its used in the client-side javascript.

Yeah, but not being able to find a package (like three@1.58.1) causes the entire install to fail.

Strangely enough, I got fresh blank project with this package.json to work just fine:

{
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
  "dependencies": {
    "discord.js": "^12.1.1",
    "mineflayer": "^2.11.0",
    "three": "^0.115.0",
    "vec3": "^0.1.3",
    "express": "^4.17.1"
  }
}
1 Like

Weird. This accually happened me back some time ago when I tried making a Discord Bot. It couldn’t find the ‘discord.js’ module. I’ll try remixing it. Thanks for the help.

2 Likes

I remixed it. Now it works. Thanks!

1 Like

Good to hear!​​​​​​​​

2 Likes

I did that by replacing my code in package.json and I get Cannot GET /the-ultra-purple

1 Like

Welcome to the community, @Ditto! Please try not to bump old posts, that makes then go to the top of the list! This kind of replies should have their fresh new topic.
Happy Glitching!
Tiago

1 Like

it might help a bit more if you give us your project name.

1 Like

[the-purple-unblocker]

1 Like

i can only take a quick look at your project since im at school, but t ry placing this in your package.json and check the logs to see if anything else is causing it.

{
  "name": "holyub",
  "version": "5.0.0",
  "repository": "https://github.com/QuiteAFancyEmerald/Holy-Unblocker",
  "description": "Holy Unblocker is a secure web proxy service with support for many sites.",
  "main": "backend.js",
  "scripts": {
    "start": "node backend.js"
  },
  "keywords": [
    "proxy",
    "node.js",
    "unblocker"
  ],
  "author": "Titanium Network",
  "license": "MIT",
  "dependencies": {
    "babel": "^6.23.0",
    "corrosion": "^1.0.0",
    "express": "^4.17.1",
    "mime-types": "^2.1.27",
    "node-fetch": "^3.2.0",
    "ws": "^7.5.3"
  }
}

Did that now it gets to preparing then stuck on starting

It keeps saying Check /app/package.json: it has syntax errors, install won’t proceed.

9:08 AM


a few seconds ago

jq: error (at package.json:1): Cannot index string with string “engines”

9:08 AM

parse error: Expected string key before ‘:’ at line 1, column 8

Topic moved: This topic was moved to Stuck on "starting" on projects

1 Like

so basically the same place?

i cannot find a directory with that for some reason. i could only find “engines” in bundle.js, which i cant really help in. maybe another member in the community can help you!

(edited link)

1 Like
1 Like