<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">see that ticket : <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1264886817" data-permission-text="Title is private" data-url="https://github.com/nodejs/node/issues/43348" data-hovercard-type="issue" data-hovercard-url="/nodejs/node/issues/43348/hovercard" href="https://github.com/nodejs/node/issues/43348">nodejs/node#43348</a></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">see that ticket : <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1264886817" data-permission-text="Title is private" data-url="https://github.com/nodejs/node/issues/43348" data-hovercard-type="issue" data-hovercard-url="/nodejs/node/issues/43348/hovercard" href="https://github.com/nodejs/node/issues/43348">nodejs/node#43348</a></p>
<h3 dir="auto">Steps To Reproduce</h3>
<p dir="auto">see that ticket : <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1264886817" data-permission-text="Title is private" data-url="https://github.com/nodejs/node/issues/43348" data-hovercard-type="issue" data-hovercard-url="/nodejs/node/issues/43348/hovercard" href="https://github.com/nodejs/node/issues/43348">nodejs/node#43348</a></p>
<h3 dir="auto">Environment</h3>
<p dir="auto">see that ticket : <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1264886817" data-permission-text="Title is private" data-url="https://github.com/nodejs/node/issues/43348" data-hovercard-type="issue" data-hovercard-url="/nodejs/node/issues/43348/hovercard" href="https://github.com/nodejs/node/issues/43348">nodejs/node#43348</a></p>
<p dir="auto"><strong>Expected Behavior:</strong></p>
<p dir="auto">NPM produces a valid tarball with no duplicated slashes on npm pack or npm publish.</p>
<p dir="auto"><strong>Actual Results</strong></p>
<p dir="auto">I get a 415 - "no package.json found in tarball"</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/640101/142471757-9c540123-adf7-4475-8447-9a56cd55a395.png"><img src="https://user-images.githubusercontent.com/640101/142471757-9c540123-adf7-4475-8447-9a56cd55a395.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">If I open the tarball in xarchiver I get a massive failure (application will crash ~15% of the time) but the CLI shows the issue.  There are double slashes after the "package" root directory name.</p>
<p dir="auto"><strong>WORKAROUND</strong></p>
<p dir="auto">Opening the archive in file-roller and moving the files out of the dir with no name, into the "package" dir allows me to publish by specifying the archive explicitly.</p>