-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
error invalid bin entry for package #613
Comments
I have a new and very similar and unexplained error in my packaging setup. Hoping for an answer here to clarify what's happening. This was one of the few places I could even find a reasonable result for:
Which makes me suspect this might be due to some recent change. |
I experience the same issue |
I'm experiencing the same error message, on NPM: v6.13.4. My steps to reproduce are different to OP, but I'm assuming its a similar cause. We use: This causes Using: Works fine however. I would assume because I've traced this back to Which was added in the v6.13.3 npm release. I don't particularly understand whats going on right now. I might have a better read later to understand what the actual cause is rather then the symptom. We shouldn't revert to v6.13.2 as 6.13.3 & 6.13.4 are to resolve the bin security flaw; I think the best course of action right now is to just not use prune until this gets sorted, most likely after the holiday period. :) @isaacs (because git-blame tells me so 😂 ) |
Having the same issue. Seeing it with varying packages:
|
Root cause of npm/cli#613
Yeah, looks like prune doesn't pass in the fully resolved folder when it links bins (which, I have to say, why is prune linking bins, that seems somewhat unnecessary, but ok.) It'll be fixed in the next cli release. In the meantime, you can maybe use |
Any news on when this fix will be live? |
6.13.5 will be going out tuesday of next week, 2019-01-07, with an update to pacote and bin-links to fix this and one other issue. |
Same happening here. Do you know aproximately at what time it will be updated today? |
This issue's been driving me nuts the last few days, is there any idea when the fix will go out? its broken all my auto deployments via TeamCity so we're stuck being able to deploy and QA our products. |
Sorry for the delay. Been debugging a weird failure on GH Actions Windows CI. We expect to get this out in the next few days, at the longest. |
@jwwtaker you can just use the commands in inverse order until the fix comes out:
|
From original description:
cd assets
npm prune produces the following error: npm ERR! invalid bin entry for package jsesc@2.5.2. key=jsesc, value=bin/jsesc
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/samhstn/.npm/_logs/2020-01-13T13_17_57_425Z-debug.log And the following debug log: 2020-01-13T13_17_57_425Z-debug.log |
We have the same problem but cannot use these workarounds because the commands are run by the Heroku buildpack. We are stuck at npm 6.13.2 (the issue happens since npm 6.13.3), or we must remove |
any update on this @isaacs ? |
My Azure DevOps CI was giving me the same error, so, just in case someone need help to temporarily fix this:
That worked for me. |
Unlike some people above, updating from npm After 20 days, at least a progress update would be great. |
The default version of npm in the docker base image fails during npm prune with `npm ERR! invalid bin entry for package msgpack-lite`. This is a known and fixed bug in npm: npm/cli#613
The default version of npm in the docker base image fails during npm prune with `npm ERR! invalid bin entry for package msgpack-lite`. This is a known and fixed bug in npm: npm/cli#613 Ticket: BG-19035
node 10.19.0 was bitten by this bug "invalid bin entry" - failing on npm install (sic!) npm/cli#613 see also https://elixirforum.com/t/cant-deploy-phoenix-app-to-heroku/31023 💙 does this need to be "backported" to 1.5 branch to appear on site?
node 10.19.0 was bitten by this bug "invalid bin entry" - failing on npm install (sic!) npm/cli#613 see also https://elixirforum.com/t/cant-deploy-phoenix-app-to-heroku/31023 💙 does this need to be "backported" to 1.5 branch to appear on site?
node 10.19.0 was bitten by this bug "invalid bin entry" - failing on npm install (sic!) npm/cli#613 see also https://elixirforum.com/t/cant-deploy-phoenix-app-to-heroku/31023 💙 does this need to be "backported" to 1.5 branch to appear on site?
Hopefully this fix works: npm/cli#613
What / Why
I need to run:
npm prune
from this line in this Heroku buildpack: https://github.com/gjaldon/heroku-buildpack-phoenix-static/blob/master/lib/build.sh#L137I experience the following error:
Which produced the following debug log: 2019-12-18T17_08_55_527Z-debug.log
When
The error only occurs when running
npm prune
when nonode_modules
are present and it can occur for more than just thejsesc
module.But
npm prune
works fine when we have installed ournode_modules
.Where
The error occurs from a clean build on our Heroku ci and for me locally on my osx machine.
How
From cloning this repository: https://github.com/samhstn/invalid-bin-entry, then running:
cd assets npm prune
produces the error
What should I do to debug this type of error going forward? And how can I get my Heroku buildpack to successfully run the
npm prune
command?The text was updated successfully, but these errors were encountered: