Issue setting up the CLI.

オープン
#507 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
node.js
領域
cli, tooling

調査の方向性

まず Windows で npx nevermore init を再現し、出力に含まれる失敗している npm install コマンドを調査します。npm が存在しない npm-cli.js のパスを解決する理由を確認します。初期化が報告されたモジュールが見つからないエラーなしで完了すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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: []
}
主要言語
Lua
スター
632
フォーク
148
平均マージ
15時間 41分
マージ済み PR(30日)
13

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Quenty/NevermoreEngine のほかの issue

Quenty/NevermoreEngine の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。