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
{{ message }}
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
I am trying to run npm test for scoped package @atom/watcher I would like to add. However, I am getting the following error:
tar (child): @atom/watcher-1.3.5.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Upon further inspection, it looks like npm pack doesn't return a correct filename in the JSON:
Node 16.9.1, npm 7.20.3
I am trying to run
npm test
for scoped package@atom/watcher
I would like to add. However, I am getting the following error:Upon further inspection, it looks like
npm pack
doesn't return a correct filename in the JSON:Notice that
filename
property states"@atom/watcher-1.3.5.tgz"
, however, the fetched file has nameatom-watcher-1.3.5.tgz
.I was able to fix this by modifying the filename extracted from JSON here:
dts-critic/index.ts
Line 320 in b079c11
to
Of course, this isn't pretty but does the job. Also I am not sure whether this works with older versions of npm, notably npm 6.
Alternatively perhaps this should be fixed in npm?
The text was updated successfully, but these errors were encountered: