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

NPM install errors since start of 2024 #512

Closed
matthewruttley opened this issue Jan 17, 2024 · 6 comments
Closed

NPM install errors since start of 2024 #512

matthewruttley opened this issue Jan 17, 2024 · 6 comments

Comments

@matthewruttley
Copy link

matthewruttley commented Jan 17, 2024

Bug report

  • Version: 0.6.0
  • URL: (can show privately if needed)
  • Repository: (can show privately if needed)

Description

(x-posted from here: https://github.com/orgs/vercel/discussions/5498)

On a simple hobby site I run, I had a working vercel-php installation (see below for redacted version).
This was totally fine and last deployed about 50 days ago, worked very well. I tried to push a small text update, and now all builds fail with:

Error: Please install npm before continuing

I've tried adding "installCommand": "npm install" to the json, and also explicitly adding an override npm install in the project settings, but neither work, just the same error.

This is super annoying and unexpected. I don't see any recent change in the changelogs that could have caused this as well so perhaps its something related to vercel.com. However I thought it worth asking here as well. How can I fix this?

{
    "version": 2,
    "functions": {
        "api/index.php": {
            "runtime": "vercel-php@0.6.0"
        }
    },
    "rewrites": [
      {
        "source": "/some_page",
        "destination": "/api/something_etc.php"
      },
    ]
}
[17:45:24.778] Running build in Washington, D.C., USA (East) – iad1
[17:45:25.260] Cloning github.com/matthewruttley/my-site (Branch: main, Commit: [redacted])
[17:45:25.269] Skipping build cache, deployment was triggered without cache.
[17:45:26.307] Cloning completed: 1.046s
[17:45:26.569] Running "vercel build"
[17:45:27.038] Vercel CLI 33.1.0
[17:45:27.202] > Installing Builder: vercel-php@0.6.0
[17:45:27.213] Error: Please install `npm` before continuing
[17:45:27.213] Learn More: https://vercel.link/builder-dependencies-install-failed

(the doc link provided on the last line isn't helpful at all - just says I need NPM, but not how to make sure it is included further than the attempts I've mentioned above)

@abdipr
Copy link

abdipr commented Jan 20, 2024

I also experienced the same thing, does anyone know how to fix it?

@revance-digital
Copy link

revance-digital commented Jan 23, 2024

Our test applications worked great until these updates.

Now we get a PHP fatal error:
Fatal error: Uncaught Error: Call to undefined function curl_init()

Was curl removed from the PHP function?

@f3l1x
Copy link
Collaborator

f3l1x commented Jan 23, 2024

Hi folks. I am currently investigating it.

@f3l1x
Copy link
Collaborator

f3l1x commented Jan 24, 2024

Hi again. Please upgrade to latest versions, it should work properly.

@matthewruttley
Copy link
Author

Hi @f3l1x thanks for looking into this. It is now working. How can I be aware of breaking changes like this in the future?

@f3l1x
Copy link
Collaborator

f3l1x commented Feb 13, 2024

I am not 100% sure how to avoid it. I am trying my bests. :-)

@f3l1x f3l1x closed this as completed Feb 23, 2024
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

No branches or pull requests

5 participants
@matthewruttley @f3l1x @abdipr @revance-digital and others