#Error during download

29 messages · Page 1 of 1 (latest)

small arrow
#

Hey, i want download discord.js, i use nodejs LTS 18.20.4, but i have big error say by npm

npm error code 1
npm error path C:\Users\agrip\Desktop\dossier-Visual-Studio\Discord\Bot Discord\Zamours
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c npm install mongoose dotenv discord.js
npm error npm error code 1```

i have try remove the node_modules folder and reinstall, upgrade npm and i didn't find solution in google, can you help me please ?
forest harnessBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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 OP
small arrow
#

All error text :

shell rockBOT
#

To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.

small arrow
north token
#

For whatever reason your shell is running npm recursively there. But the main issue seems to be missing permissions for the user that shell runs under (can’t delete a temporary folder)

small arrow
#

my package.json if that change the comportement : ```json
{
"name": "zamours",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"install": "npm install mongoose dotenv discord.js",
"dev": "nodemon index.js",
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"zamours": "file:"
},
"description": ""
}

north token
#

You are running a Terminal as administrator?

north token
#

And what’s with that zamours dependency without a path?

small arrow
north token
#

You try to install the package as its own dependency there. That causes the recursion

north token
small arrow
#

for the creation of the project, it is an AI that helps me to do the architecture of the project

north token
#

Okay, there’s your main issue

#

AI can’t create code for you if you don’t understand what it does

small arrow
north token
#

Yes and no. It doesn’t error. That doesn’t mean it works

small arrow
#

true, but I use it as an aid for the architecture of projects to have the most optimal because I'm not yet at that level in the code

north token
north token
shell rockBOT
small arrow
north token
#

Use the official guide instead to actually understand what you do

north token
small arrow