Open cmahnke opened 1 week ago
@cmahnke Could you provide detailed, step by step instruction on how to reproduce the issue?, This should include all the commands run, starting from an empty directory, and any prerequisites steps you took before running the npm install.
@kchindam-infy
cd /tmp
mkdir test
cd test
npm i github:ProjectMirador/mirador#5cb692ed
Afterwards:
ls node_modules/mirador/
LICENSE README.md package.json
Sources are missing
Context:
npm -v
10.9.0
node -v
v22.9.0
I have tried with the steps provided and i am unable to repro the issue as mentioned. Its erroring out. Appreciate if you provide more detailed steps on how to repro the issue. 2024-11-15T08_20_44_777Z-debug-0.log
@kchindam-infy: Thanks! That actually a good hint, might it be the case that it's failing silently (or just by setting a return code)? If yes, that should be considered a bug in itself of cause.
But I'll have a deeper look on my side first: Installing creates two log files, this might caused by some lifecycle script?
While creating a demonstration I could reproduce your findings, they are related to https://github.com/Automattic/node-canvas/issues/2448 While I'll try to figure out if this module can be deprecated upstream I still try to figure out if this is the root cause for my report, since this error actually is reported...
@kchindam-infy
I've created a reproducable example here: https://github.com/cmahnke/npm-7898
It provides the required libraries to build canvas
and shows, that the error you've reported is not the root cause.
Hopefully this can help you, I can also setup a GitHub action...
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When installing a depedency from Github with a given commit / revision hash, the required code should be installed to
node_modules
. Example:Only packages.json and text files (LICENSE, README.md) are installed.
According to the documentation this is a valid notation, but others aren't working either...
Using Yarn this works and demonstrates that this is a serious bug:
Expected Behavior
npm
should download and install the required dependency not just metadata, just asyarn
doesSteps To Reproduce
mkdir test
cd test
npm i --verbose github:ProjectMirador/mirador#5cb692ed
ls node_modules/mirador/
Sources are missingEnvironment