Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to download #19

Open
coder-zcy opened this issue Mar 29, 2021 · 14 comments · Fixed by #20
Open

Failed to download #19

coder-zcy opened this issue Mar 29, 2021 · 14 comments · Fixed by #20
Labels
bug Something isn't working pending-investigation

Comments

@coder-zcy
Copy link

coder-zcy commented Mar 29, 2021

Hello when I user this command, I can' download the tgz。
download-tgz package-lock ./package-lock.json

[failed download tgz] undefined https://registry.npm.taobao.org/@vue/babel-helper-vue-jsx-merge-props/download/@vue/babel-helper-vue-jsx-merge-props-1.2.1.tgz?cache=0&sync_timestamp=1602851122331&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40vue%2Fbabel-helper-vue-jsx-merge-props%2Fdownload%2F%40vue%2Fbabel-helper-vue-jsx-merge-props-1.2.1.tgz 10
[failed download tgz] undefined https://registry.npm.taobao.org/arr-diff/download/arr-diff-4.0.0.tgz 10

@Meir017
Copy link
Owner

Meir017 commented Mar 29, 2021

@zcy790811 can you attach the package-lock.json file?

@Meir017 Meir017 added bug Something isn't working not-enough-information labels Mar 31, 2021
@coder-zcy
Copy link
Author

@zcy790811 can you attach the package-lock.json file?

package-lock.zip

@Meir017
Copy link
Owner

Meir017 commented Apr 3, 2021

@craone
Copy link

craone commented Apr 13, 2021

registry = https://registry.npm.taobao.org is not work
change registry = https://registry.npmjs.org is work

@Meir017
Copy link
Owner

Meir017 commented Apr 13, 2021

@zcy790811 does this solve the issue? how was this package.lock file generated? did you configure the registry to a custom one?

@coder-zcy
Copy link
Author

registry = https://registry.npm.taobao.org is not work
change registry = https://registry.npmjs.org is work

Well, it works, But part of these tgzs failed, I guess it may be caused by the network.

Error: EPERM: operation not permitted, open 'D:\dev\java\hello-world\tarballs\kind-of\kind-of-3.2.2.tgz'
Emitted 'error' event on WriteStream instance at:
at errorOrDestroy (internal/streams/destroy.js:108:12)
at WriteStream.onerror (_stream_readable.js:759:7)
at WriteStream.emit (events.js:210:5)
at internal/fs/streams.js:294:12
at FSReqCallback.oncomplete (fs.js:146:23) {
errno: -4048,
code: 'EPERM',
syscall: 'open',
path: 'D:\dev\java\hello-world\tarballs\kind-of\kind-of-3.2.2.tgz'
}

@coder-zcy
Copy link
Author

@zcy790811 does this solve the issue? how was this package.lock file generated? did you configure the registry to a custom one?

@Meir017 thanks a lot, this solve the issue. could you updagrade the tools whit registry option?
just like this: download-tgz package-lock ./package-lock.json --registry=XXX

@Meir017
Copy link
Owner

Meir017 commented Apr 15, 2021

@craone try the new preview version 3.11.2-preview1

@craone
Copy link

craone commented Apr 19, 2021

OK,thanks.

@coder-zcy
Copy link
Author

It's a nice tool, However ,It doesn't work for registry https://registry.npm.taobao.org.
I guess we should solve it from end.
I can download from url like https://registry.npm.taobao.org/domelementtype/-/domelementtype-2.3.0.tgz
But I can't download the tgz from command "download-tgz package-lock ./package-lock.json --registry=https://registry.npm.taobao.org".

[failed download tgz] undefined https://registry.npm.taobao.org/nth-check/-/nth-check-2.0.1.tgz 3
[failed download tgz] undefined https://registry.npm.taobao.org/commander/-/commander-2.20.3.tgz 2
[failed download tgz] undefined https://registry.npm.taobao.org/@vue/babel-sugar-functional-vue/-/babel-sugar-functional-vue-1.2.2.tgz 4
[failed download tgz] undefined https://registry.npm.taobao.org/commander/-/commander-2.20.3.tgz 1
[failed download tgz] undefined https://registry.npm.taobao.org/nth-check/-/nth-check-2.0.1.tgz 2
[failed download tgz] undefined https://registry.npm.taobao.org/@vue/babel-sugar-functional-vue/-/babel-sugar-functional-vue-1.2.2.tgz 3
[failed download tgz] undefined https://registry.npm.taobao.org/commander/-/commander-2.20.3.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/nth-check/-/nth-check-2.0.1.tgz 1
[failed download tgz] undefined https://registry.npm.taobao.org/@vue/babel-sugar-functional-vue/-/babel-sugar-functional-vue-1.2.2.tgz 2
[failed download tgz] undefined https://registry.npm.taobao.org/nth-check/-/nth-check-2.0.1.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/@vue/babel-sugar-functional-vue/-/babel-sugar-functional-vue-1.2.2.tgz 1
[failed download tgz] undefined https://registry.npm.taobao.org/@vue/babel-sugar-functional-vue/-/babel-sugar-functional-vue-1.2.2.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/supports-color/-/supports-color-5.5.0.tgz 1
[failed download tgz] undefined https://registry.npm.taobao.org/qs/-/qs-6.10.3.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.7.tgz 1
[failed download tgz] undefined https://registry.npm.taobao.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.7.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/supports-color/-/supports-color-5.5.0.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/stylehacks/-/stylehacks-5.1.0.tgz 2
[failed download tgz] undefined https://registry.npm.taobao.org/wcwidth/-/wcwidth-1.0.1.tgz 3
[failed download tgz] undefined https://registry.npm.taobao.org/domelementtype/-/domelementtype-2.3.0.tgz 5
[failed download tgz] undefined https://registry.npm.taobao.org/is-wsl/-/is-wsl-2.2.0.tgz 2
[failed download tgz] undefined https://registry.npm.taobao.org/domelementtype/-/domelementtype-2.3.0.tgz 4
[failed download tgz] undefined https://registry.npm.taobao.org/is-wsl/-/is-wsl-2.2.0.tgz 1
[failed download tgz] undefined https://registry.npm.taobao.org/stylehacks/-/stylehacks-5.1.0.tgz 1
[failed download tgz] undefined https://registry.npm.taobao.org/wcwidth/-/wcwidth-1.0.1.tgz 2
[failed download tgz] undefined https://registry.npm.taobao.org/domelementtype/-/domelementtype-2.3.0.tgz 3
[failed download tgz] undefined https://registry.npm.taobao.org/stylehacks/-/stylehacks-5.1.0.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/is-wsl/-/is-wsl-2.2.0.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/wcwidth/-/wcwidth-1.0.1.tgz 1
[failed download tgz] undefined https://registry.npm.taobao.org/domelementtype/-/domelementtype-2.3.0.tgz 2
[failed download tgz] undefined https://registry.npm.taobao.org/wcwidth/-/wcwidth-1.0.1.tgz 0
[failed download tgz] undefined https://registry.npm.taobao.org/domelementtype/-/domelementtype-2.3.0.tgz 1
[failed download tgz] undefined https://registry.npm.taobao.org/domelementtype/-/domelementtype-2.3.0.tgz 0

@Meir017 Meir017 reopened this May 8, 2022
@Meir017
Copy link
Owner

Meir017 commented May 8, 2022

@coder-zcy can you provide the package-lock.json file? is it the same file as https://gist.github.com/Meir017/c60b50d3076bfb9a9eea662d31dab37d ?

@coder-zcy
Copy link
Author

package-lock.json.zip

@Meir017
Copy link
Owner

Meir017 commented May 8, 2022

@coder-zcy
Copy link
Author

coder-zcy commented May 9, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending-investigation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants