Closed DaXcess closed 2 years ago
Pardon me I accidentally pressed enter before finishing the issue template
I have the same issue, also with publishing a package that uses node-gyp.
Edit: I foud the hard links. In my case, they were caused by prebuildify. I implemented a workaround to copy the files instead, but hope there is a more robust solution than that in the future
The npm registry does not support hard links, and any build step that introduces them is not going to work for a package you want to publish. This is a bug to be worked out with the package itself that is building hard links. There is not much the npm cli can do about this, it's running the code that it was asked to run.
You may need to tell npm to ignore those linked build assets, as they are likely not intended to be part of the published module.
Is there an existing issue for this?
Current Behavior
When trying to npm publish a node module, the registry returns a 415 - Hard link is not allowed
Expected Behavior
The module is published correctly
Steps To Reproduce
Dependencies: axios DevDependencies: @types/node, nan, typescript
The files that should be uploaded contain: A built Node-GYP module (so Makefiles and .node files), package.json (no package-lock.json), README.md
Publish log:
NPM 6 does not appear to be having this problem
Environment