Skip to content

Invalid byte sequence error when run create command #27064

@XhstormR

Description

@XhstormR

Command

new

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

The recent angular-cli added support for bun as a package manager. I tried to use it, but an exception error occurred.

https://github.com/angular/angular-cli/releases/tag/17.2.0-next.1

Minimal Reproduction

Just install bun and run the command bunx @angular/cli@17.2.0-rc.0 new mytest

$ bunx @angular/cli@17.2.0-rc.0 new mytest
Node.js version v21.6.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/previous-releases/.
? Which stylesheet format would you like to use? CSS
? Do you want to enable Server-Side Rendering (SSR) and Static Site Generation
(SSG/Prerendering)? No
Invalid byte sequence

image

Exception or Error

No response

Your Environment

$ bunx @angular/cli@17.2.0-rc.0 version
Node.js version v21.6.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/previous-releases/.

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 17.1.3
Node: 21.6.0 (Unsupported)
Package Manager: npm 10.1.0
OS: darwin x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1701.3
@angular-devkit/core         17.1.3
@angular-devkit/schematics   17.1.3
@schematics/angular          17.1.3

Warning: The current version of Node (21.6.0) is not supported by Angular.

Anything else relevant?

OS Platform: MacOs Darwin 23.3.0 x86_64 i386
Bun version: 1.0.26

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions