Quenty / Quenty/NevermoreEngine

Issue setting up the CLI.

Open
#507 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Lua
Stars
610
Forks
144
Avg merge
1d 20h
Merged PRs (30d)
12

Description

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: []
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing npx nevermore init on Windows and inspect the failing npm install command in the output. Check why npm resolves to the missing npm-cli.js path; done means the initialization completes without the reported module-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.