Skip to content

The errors when trying to use the TypeScript apphost are inconsistent between aspire new/init/run/deploy #14814

@davidfowl

Description

@davidfowl

This machine does not have node installed.

exedev@shark-switch:~/apps$ aspire new
Enter the project name (apps): HelloReact
Enter the output path: (./HelloReact): ./HelloReact
❌ npm is not installed or not found in PATH. Please install Node.js and try again.

exedev@shark-switch:~/apps$ ls
HelloReact
exedev@shark-switch:~/apps$ mkdir Hello2
exedev@shark-switch:~/apps$ cd Hello2/
exedev@shark-switch:~/apps/Hello2$ aspire init

Select AppHost Language
Choose the programming language for your Aspire AppHost.
This selection will be saved for future use.

✔  Language preference saved to local settings: TypeScript (Node.js)

ℹ  Creating TypeScript (Node.js) AppHost...

❌ Failed to install TypeScript (Node.js) dependencies.
✔  Created apphost.ts
ℹ  Run 'aspire run' to start your AppHost.

exedev@shark-switch:~/apps/Hello2$

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions