error in code

these my package .json when i run npm test or start it show error but when i run using node index.js it work fine please help these error show when i run using npm test npm ERR! enoent ENOENT: no such file or directory, open '/tmp/start-e6504fa2.sh' npm ERR! enoent This is related to npm not being able to find a file.{ "name": "nodejs", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start":"node index.js", "test": "node index.js" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "@types/node": "^18.0.6", "aws-sdk": "^2.1526.0", "axios": "^1.6.3", "discord-modals": "^1.3.9", "discord.js": "^13.6.0", "katex": "^0.16.9", "moment-timezone": "^0.5.43", "mongodb": "^6.3.0", "node-fetch": "^3.2.6", "package.json": "^2.0.1", "request": "^2.88.2" } }
10 Replies
d.js toolkit
d.js toolkit12mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
treble/luna
treble/luna12mo ago
Not djs related, #other-js-ts
Nitin
NitinOP12mo ago
my index.js file contain discord.js
treble/luna
treble/luna12mo ago
okay but your error is not something djs can do about It even says right there also you arent using v14, you're using 13.6, which is outdated
Nitin
NitinOP12mo ago
discord library? my isuee in deployment it work in console when i use node index.js
treble/luna
treble/luna12mo ago
with npm, not djs
Nitin
NitinOP12mo ago
No description
Nitin
NitinOP12mo ago
but im using version 16
treble/luna
treble/luna12mo ago
mate this isnt djs related #other-js-ts
Nitin
NitinOP12mo ago
ok thanks i think u know about that
Want results from more Discord servers?
Add your server