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 Jul 3, 2019. It is now read-only.
First sorry for a third issue of the same problem...
The problem
I found the JSON from API:Objects:Version (GET·/{package}/{version}) of my recent published package all have a _from key like: "file:C:/Users/Dr/Documents/GitHub/dr-js/dr-js-0.15.1-dev.6.tgz"sample.
The _from value is the full path of the tgz file on my local system, and I think that should not be published as a public meta data.
Further digging
This should be caused by publishing with syntax: npm publish <tarball>.
First sorry for a third issue of the same problem...
The problem
I found the JSON from API:Objects:Version (
GET·/{package}/{version}
) of my recent published package all have a_from
key like:"file:C:/Users/Dr/Documents/GitHub/dr-js/dr-js-0.15.1-dev.6.tgz"
sample.The
_from
value is the full path of thetgz
file on my local system, and I think that should not be published as a public meta data.Further digging
This should be caused by publishing with syntax:
npm publish <tarball>
.Basically I added
console.log
to lib/publish.js#L110-L124:And got the following result:
The first two have full or extra local path in the
_from
value.The printed
_from
value should then be uploaded to the registry and be public accessible.By checking the registry this key started at
_npmVersion: "5.8.0"
, the latest_npmVersion: "6.1.0"
still publish with_from
key.This issue is initially posted in: https://github.com/npm/registry/issues/331, without the code log testing.
Then in: npm/npm#20797.
The text was updated successfully, but these errors were encountered: