fastjs-team / core

Fastjs is a useful, lightweight JavaScript library for any types of project.
https://fastjs.dev
MIT License
341 stars 37 forks source link

bug(cli): can't create with only using npm #115

Closed xiaodong2008 closed 2 months ago

xiaodong2008 commented 2 months ago

What is the current behavior?

Documents/Program/fastjs-team via  v20.12.1 ❯ npm create fastjs sh: create-fastjs: command not found npm ERR! code 127 npm ERR! path /Users/xiaodong/Documents/Program/fastjs-team npm ERR! command failed npm ERR! command sh -c create-fastjs

npm ERR! A complete log of this run can be found in: /Users/xiaodong/.npm/_logs/2024-04-29T00_28_44_259Z-debug-0.log

What is the expected behavior?

Documents/Program/fastjs-team via  v20.12.1 ❯ pnpm create fastjs .../Library/pnpm/store/v3/tmp/dlx-48275 | +62 ++++++ .../Library/pnpm/store/v3/tmp/dlx-48275 | Progress: resolved 84, reused 62, downloaded 0, added 62, done

πŸ› οΈ Fastjs Cli 1.0.0-beta.3 Author: @xiaodong2008

Finding available package managers: βœ” Detected package manager pnpm βœ” Detected package manager yarn βœ– Package manager bun not found βœ” Detected package manager npm Found 3 package managers in 599ms

? Enter the name of the app: (fastjs-app)

Steps to reproduce the problem

When using npm init or npm create, yarn or pnpm doesn't have this problem.

Link to minimal reproduction

No response

System Info

System:
    OS: macOS 14.4
    CPU: (8) arm64 Apple M2
    Memory: 256.59 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
Binaries:
    Node: 20.12.1 - ~/Library/Caches/fnm_multishells/35933_1714347794853/bin/node
    Yarn: 1.22.22 - ~/Library/Caches/fnm_multishells/35933_1714347794853/bin/yarn
    npm: 10.5.0 - ~/Library/Caches/fnm_multishells/35933_1714347794853/bin/npm
    pnpm: 8.15.6 - ~/Library/Caches/fnm_multishells/35933_1714347794853/bin/pnpm
Browsers:
    Chrome: 124.0.6367.91
    Safari: 17.4

Any additional comments?

No response

Confirmations

xiaodong2008 commented 2 months ago

Fixed in v1.0.0-beta.5