Skip to content

error running zeus create #373

@0v3rfl00w

Description

@0v3rfl00w

Discussed in https://github.com/orgs/zepp-health/discussions/372

Originally posted by 0v3rfl00w October 10, 2024
The development environment is setup properly
`(base) PS D:\coding\coding\zeppOS\test_3> zeus -v
node: v22.9.0

npm: v10.9.0

zeus: v1.6.0

zpm: v2.6.6
but running zeus create hello-world returns this error :(base) PS D:\coding\coding\zeppOS\test_3> zeus create hello-world
main.js create

Named the project and add to the current directory.

Base Options
-h, --help Display help information. [boolean]
-v, --version Display version number. [boolean]

TypeError: Cannot read properties of undefined (reading 'apply')
at C:\Users\b94ai\AppData\Local\Yarn\Data\global\node_modules@zeppos\zeus-cli\utils\tools.js:85:41
at step (C:\Users\b94ai\AppData\Local\Yarn\Data\global\node_modules@zeppos\zeus-cli\utils\tools.js:33:23)
at Object.next (C:\Users\b94ai\AppData\Local\Yarn\Data\global\node_modules@zeppos\zeus-cli\utils\tools.js:14:53)
at C:\Users\b94ai\AppData\Local\Yarn\Data\global\node_modules@zeppos\zeus-cli\utils\tools.js:8:71
at new Promise ()
at __awaiter (C:\Users\b94ai\AppData\Local\Yarn\Data\global\node_modules@zeppos\zeus-cli\utils\tools.js:4:12)
at Object.handler (C:\Users\b94ai\AppData\Local\Yarn\Data\global\node_modules@zeppos\zeus-cli\utils\tools.js:73:16)
at C:\Users\b94ai\AppData\Local\Yarn\Data\global\node_modules\yargs\build\index.cjs:1:8993
at j (C:\Users\b94ai\AppData\Local\Yarn\Data\global\node_modules\yargs\build\index.cjs:1:4956)
at _.handleValidationAndGetResult (C:\Users\b94ai\AppData\Local\Yarn\Data\global\node_modules\yargs\build\index.cjs:1:8962)
`

how would you fix this
i am on windows 11 x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions