Issue setting up the CLI.

Aperta
#507 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
node.js
Ambito
cli, tooling

Direzione di ricerca

Inizia riproducendo npx nevermore init su Windows e analizza il comando npm install che fallisce nell'output. Verifica perché npm risolve il percorso mancante di npm-cli.js; il lavoro è completato quando l'inizializzazione termina senza l'errore di modulo non trovato segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

i am bad at describing it but here is the output i got:

H:\MYGAME>npx nevermore init
Creating a new game at 'H:\MYGAME' with template 'C:\Users\Ratsarecool\AppData\Roaming\npm\node_modules\@quenty\nevermore-cli\templates\game-template'
File already exists H:\MYGAME\.editorconfig will not overwrite
File already exists H:\MYGAME\.github\workflows\build.yml will not overwrite
File already exists H:\MYGAME\aftman.toml will not overwrite
File already exists H:\MYGAME\default.project.json will not overwrite
File already exists H:\MYGAME\.gitignore will not overwrite
File already exists H:\MYGAME\package.json will not overwrite
File already exists H:\MYGAME\README.md will not overwrite
File already exists H:\MYGAME\selene.toml will not overwrite
File already exists H:\MYGAME\src\modules\Client\MYGAMEServiceClient.lua will not overwrite
File already exists H:\MYGAME\src\modules\Server\MYGAMEService.lua will not overwrite
File already exists H:\MYGAME\src\modules\Shared\MYGAMETranslator.lua will not overwrite
File already exists H:\MYGAME\src\scripts\Client\ClientMain.client.lua will not overwrite
File already exists H:\MYGAME\src\scripts\Server\ServerMain.server.lua will not overwrite
File already exists H:\MYGAME\mygame.sublime-project will not overwrite
Running `npm install @quenty/loader @quenty/servicebag @quenty/binder @quenty/clienttranslator @quenty/cmdrservice`
node:internal/modules/cjs/loader:1147
  throw err;
  ^

Error: Cannot find module 'C:\Users\User\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.11.1
nevermore init [game-name]

Initializes a new game template.

Positionals:
  game-name  Name of the new package folder.  [string]

Options:
  --help     Show help  [boolean]
  --version  Show version number  [boolean]
  --yes      True if this run should not prompt the user in any way  [boolean] [default: false]
  --dryrun   True if this run is a dryrun and shouldn't affect the file system  [boolean] [default: false]

Error: Command failed with exit code 1: npm install @quenty/loader @quenty/servicebag @quenty/binder @quenty/clienttranslator @quenty/cmdrservice
node:internal/modules/cjs/loader:1147
  throw err;
  ^

Error: Cannot find module 'C:\Users\User\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
Lingua principale
Lua
Stelle
632
Fork
148
Merge medio
15h 41m
PR unite (30g)
13

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Quenty/NevermoreEngine

Tutte le issue di Quenty/NevermoreEngine

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.