Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying --name when generating a new project errors #39

Open
NullVoxPopuli opened this issue Jul 7, 2024 · 0 comments
Open

Specifying --name when generating a new project errors #39

NullVoxPopuli opened this issue Jul 7, 2024 · 0 comments

Comments

@NullVoxPopuli
Copy link
Collaborator

Not sure if this is intended to be supported, but I saw --name used in the init instructions in the README`. The intent was to generate the project in one folder, and then just have the module name be "app", for brevity.

npx ember-cli@beta new web-client \
  --blueprint @embroider/app-blueprint \
  --typescript \
  --pnpm \
  --skip-git \
  --skip-npm \
  --name app # <---- this part here

output:

The option '--name' is not registered with the 'new' command. Run `ember new --help` for a list of supported options.
installing app-blueprint
installing app
Ember CLI v5.9.0

✨  Creating a new Ember app in <cwd>/web-client:
The globPattern "app" did not match any files, so no file updates will be made.
The globPattern "app" did not match any files, so no file updates will be made.
ENOENT: no such file or directory, open '<cwd>/web-client/package.json'


Stack Trace and Error Report: /tmp/error.dump.4c06251c7656eaf1d261a6a8a480be59.log
=================================================================================

ENV Summary:

  TIME: Sun Jul 07 2024 12:36:35 GMT-0400 (Eastern Daylight Time)
  TITLE: ember
  ARGV:
  - 🏠/.volta/tools/image/node/22.3.0/bin/node
  - 🏠/.npm/_npx/51048be46e5ecfec/node_modules/.bin/ember
  - new
  - web-client
  - --blueprint
  - @embroider/app-blueprint
  - --typescript
  - --pnpm
  - --skip-git
  - --skip-npm
  - --name
  - app
  EXEC_PATH: 🏠/.volta/tools/image/node/22.3.0/bin/node
  TMPDIR: /tmp
  SHELL: /bin/bash
  PATH:
  - 🏠/.npm/_npx/51048be46e5ecfec/node_modules/.bin
  - <repo>/node_modules/.bin
  - /✂️/node_modules/.bin
  - /✂️/node_modules/.bin
  - 🏠/node_modules/.bin
  - /home/node_modules/.bin
  - /node_modules/.bin
  - 🏠/.volta/tools/image/node/22.3.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin
  - 🏠/.volta/tools/image/pnpm/9.3.0/bin
  - 🏠/.volta/tools/image/yarn/1.22.21/bin
  - 🏠/.volta/tools/image/node/22.3.0/bin
  - 🏠/.bun/bin
  - 🏠/.bun/bin
  - 🏠/.volta/bin
  - 🏠/.cargo/bin
  - 🏠/Applications
  - 🏠/apps/phantomjs/bin
  - 🏠/scripts/system-utils
  - 🏠/scripts/node
  - 🏠/scripts/git
  - 🏠/scripts/rails
  - 🏠/scripts
  - 🏠/.bun/bin
  - 🏠/.bun/bin
  - 🏠/.volta/bin
  - 🏠/.cargo/bin
  - 🏠/.cargo/bin
  - 🏠/Applications
  - 🏠/apps/phantomjs/bin
  - 🏠/scripts/system-utils
  - 🏠/scripts/node
  - 🏠/scripts/git
  - 🏠/scripts/rails
  - 🏠/scripts
  - /usr/local/sbin
  - /usr/local/bin
  - /usr/sbin
  - /usr/bin
  - /sbin
  - /bin
  - /usr/games
  - /usr/local/games
  - /snap/bin
  - /snap/bin
  PLATFORM: linux x64
  FREEMEM: 51850383360
  TOTALMEM: 65106300928
  UPTIME: 441048.67
  LOADAVG: 0.69,0.43,0.39
  CPUS:
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 3501
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 400
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 4229
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 2871
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 4624
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 2290
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 4623
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 4652
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 4693
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 4689
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 4690
  - AMD Ryzen 5 7640U w/ Radeon 760M Graphics - 1927
  ENDIANNESS: LE
  VERSIONS:
  - acorn: 8.11.3
  - ada: 2.8.0
  - ares: 1.29.0
  - base64: 0.5.2
  - brotli: 1.1.0
  - cjs_module_lexer: 1.2.2
  - cldr: 45.0
  - icu: 75.1
  - llhttp: 9.2.1
  - modules: 127
  - napi: 9
  - nghttp2: 1.62.1
  - nghttp3: 0.7.0
  - ngtcp2: 1.3.0
  - node: 22.3.0
  - openssl: 3.0.13+quic
  - simdjson: 3.9.3
  - simdutf: 5.2.8
  - tz: 2024a
  - undici: 6.18.2
  - unicode: 15.1
  - uv: 1.48.0
  - uvwasi: 0.0.21
  - v8: 12.4.254.20-node.13
  - zlib: 1.3.0.1-motley-4f653ff

ERROR Summary:

  - broccoliBuilderErrorStack: [undefined]
  - code: ENOENT
  - codeFrame: [undefined]
  - errorMessage: ENOENT: no such file or directory, open '<repo>/web-client/package.json'
  - errorType: [undefined]
  - location:
    - column: [undefined]
    - file: [undefined]
    - line: [undefined]
  - message: ENOENT: no such file or directory, open '<repo>/web-client/package.json'
  - name: Error
  - nodeAnnotation: [undefined]
  - nodeName: [undefined]
  - originalErrorMessage: [undefined]
  - stack: Error: ENOENT: no such file or directory, open '<repo>/web-client/package.json'
    at Object.openSync (node:fs:573:18)
    at Object.readFileSync (node:fs:452:35)
    at Class.afterInstall (/tmp/ember-cli202467-269477-1kv7yy7.wxv6/node_modules/@embroider/app-blueprint/index.js:69:30)
    at Class._process (🏠/.npm/_npx/51048be46e5ecfec/node_modules/ember-cli/lib/models/blueprint.js:466:21)
    at async InstallBlueprintTask.run (🏠/.npm/_npx/51048be46e5ecfec/node_modules/ember-cli/lib/tasks/install-blueprint.js:49:5)
    at async Class.run (🏠/.npm/_npx/51048be46e5ecfec/node_modules/ember-cli/lib/commands/init.js:108:5)
    at async Class.run (🏠/.npm/_npx/51048be46e5ecfec/node_modules/ember-cli/lib/commands/new.js:127:12)
    at async 🏠/.npm/_npx/51048be46e5ecfec/node_modules/ember-cli/lib/cli/cli.js:166:32
    at async CLI.run (🏠/.npm/_npx/51048be46e5ecfec/node_modules/ember-cli/lib/cli/cli.js:213:14)
    at async module.exports (🏠/.npm/_npx/51048be46e5ecfec/node_modules/ember-cli/lib/cli/index.js:96:12)

=================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant