average monarchist fan
DIAdiscord.js - Imagine an app
•Created by average monarchist fan on 8/30/2023 in #djs-questions
error
I have done codes of basic slash commands, but when i try to run node deploy-commands.js, this error appears:
Error: ENOTDIR: not a directory, scandir 'C:\Users\fanmo\OneDrive\Plocha\taubine\commands\ping.js'
at Object.readdirSync (node:fs:1527:3)
at Object.<anonymous> (C:\Users\fanmo\OneDrive\Plocha\taubine\deploy-commands.js:14:26)
at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { errno: -4052, syscall: 'scandir', code: 'ENOTDIR', path: 'C:\Users\fanmo\OneDrive\Plocha\taubine\commands\ping.js' }
at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { errno: -4052, syscall: 'scandir', code: 'ENOTDIR', path: 'C:\Users\fanmo\OneDrive\Plocha\taubine\commands\ping.js' }
55 replies
DIAdiscord.js - Imagine an app
•Created by average monarchist fan on 8/30/2023 in #djs-questions
npm init
i have node.js installed, i ran node -v in command prompt, version is 18.17.1, then i tried to run npm init in terminal but this occured:
The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was include
d, verify that the path is correct and try again.
At line:1 char:1
+ npm init
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
3 replies
DIAdiscord.js - Imagine an app
•Created by average monarchist fan on 4/1/2023 in #djs-questions
Syntax Error, unexpected token m
I need help
36 replies