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
Linux 6.10.12-hardened1-1-hardened #1 SMP PREEMPT_DYNAMIC Wed, 02 Oct 2024 17:47:30 +0000 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
Install Node.js v23.0.0 & attempt to pack an NPM package.
How often does it reproduce? Is there a required condition?
No required condition. Always reproducible.
What is the expected behavior? Why is that the expected behavior?
The NPM package should pack successfully.
What do you see instead?
NPM warns about tarball data in the repository directory being null/corrupted, then errors as it cannot find the file to pack.
It seems to be missing the first character of the dist path? I'm not even sure how it knows the .tsbuildinfo file exists when it's apparently looking in the ist instead of dist directory.
npm warn tarball tarball data for file:/home/work/Repositories/example/ (null) seems to be corrupted. Trying again.
npm warn tarball tarball data for file:/home/work/Repositories/example/ (null) seems to be corrupted. Trying again.
npm error code ENOENT
npm error syscall lstat
npm error path /home/work/Repositories/example/ist/.tsbuildinfo
npm error errno -2
npm error enoent ENOENT: no such file or directory, lstat '/home/work/Repositories/example/ist/.tsbuildinfo'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: /home/work/.npm/_logs/2024-10-22T09_39_37_630Z-debug-0.log
Version
23.0.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Install Node.js v23.0.0 & attempt to pack an NPM package.
How often does it reproduce? Is there a required condition?
No required condition. Always reproducible.
What is the expected behavior? Why is that the expected behavior?
The NPM package should pack successfully.
What do you see instead?
NPM warns about tarball data in the repository directory being null/corrupted, then errors as it cannot find the file to pack.
It seems to be missing the first character of the
dist
path? I'm not even sure how it knows the.tsbuildinfo
file exists when it's apparently looking in theist
instead ofdist
directory.My
files
property inpackage.json
:Additional information
Downgrading to Node.js v22.10.0 fixes the issue. NPM now successfully packs the package using the
dist
directory instead ofist
:The text was updated successfully, but these errors were encountered: