Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a better error message during pulumi new if no nodejs package manager is installed #16096

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

julienp
Copy link
Contributor

@julienp julienp commented May 1, 2024

Description

Fixes #13542

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
    • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

@julienp julienp requested a review from a team as a code owner May 1, 2024 00:25
@pulumi-bot
Copy link
Contributor

pulumi-bot commented May 1, 2024

Changelog

[uncommitted] (2024-05-03)

Bug Fixes

  • [sdk/nodejs] Provide a better error message during pulumi new if no nodejs package manager is installed
    #16096

@julienp julienp force-pushed the julienp/pulumi-new-npm-error branch from a53dec0 to 741caba Compare May 3, 2024 05:09
@julienp julienp enabled auto-merge May 3, 2024 05:10
@julienp julienp disabled auto-merge May 3, 2024 05:10
@@ -100,8 +101,8 @@ func ResolvePackageManager(pwd string) (PackageManager, error) {
// Finally, fall back to npm.
node, err := newNPM()
if err != nil {
return nil, fmt.Errorf("could not find npm on the $PATH; npm is installed with Node.js "+
"available at https://nodejs.org/: %w", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We ok dropping the ref to the website to download from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide better message during pulumi new if npm (or equivalent tools for other languages) isn't installed
4 participants