You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you don't have a required tool like npm installed, and you run pulumi new typescript, it will attempt to run npm install and fail because npm isn't available. At this point you have a partially initialized project, and it's unclear what you're supposed to do to address the problem. If you run pulumi new again, it'll error about existing files in the directory and can error about conflicting names (because the stack was already previously created).
Expected Behavior
At a minimum, when a required tool isn't available (e.g. npm isn't on PATH) we should emit a better message to the user. It doesn't even have to necessarily be an error. It could just be something along the lines of "your project has been created but needs to have dependencies installed. Install npm and then run npm install in this directory".
Steps to reproduce
Run on a machine that doesn't have npm installed, or as follows:
$ PATH="" /Users/user/.pulumi-dev/bin/pulumi new typescript
This command will walk you through creating a new Pulumi project.
Enter a value or leave blank to accept the (default), and press <ENTER>.
Press ^C at any time to quit.
project name: (myproject)
project description: (A minimal TypeScript Pulumi program)
Created project 'myproject'
Please enter your desired stack name.
To create a stack in an organization, use the format <org-name>/<stack-name> (e.g. `acmecorp/dev`).
stack name: (dev)
Created stack 'dev'
Installing dependencies...
error: installing dependencies failed; rerun manually to try again, then run `pulumi up` to perform an initial deployment: npm install failed: could not find npm on the $PATH; npm is installed with Node.js available at https://nodejs.org/: exec: "npm": executable file not found in $PATH
Output of pulumi about
$ pulumi about
CLI
Version 3.75.1-dev.0
Go Version go1.20.5
Go Compiler gc
Host
OS darwin
Version 12.6.6
Arch arm64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
What happened?
If you don't have a required tool like
npm
installed, and you runpulumi new typescript
, it will attempt to runnpm install
and fail becausenpm
isn't available. At this point you have a partially initialized project, and it's unclear what you're supposed to do to address the problem. If you runpulumi new
again, it'll error about existing files in the directory and can error about conflicting names (because the stack was already previously created).Expected Behavior
At a minimum, when a required tool isn't available (e.g.
npm
isn't onPATH
) we should emit a better message to the user. It doesn't even have to necessarily be an error. It could just be something along the lines of "your project has been created but needs to have dependencies installed. Installnpm
and then runnpm install
in this directory".Steps to reproduce
Run on a machine that doesn't have npm installed, or as follows:
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: