-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
install error #261
Comments
Do I need to set socket proxy?, Because of the network problem, the access to some information of GitHub in China often times out of time |
When I have NPM image in China, cnpm is installed successfully run: env:
|
secret-agent/mitm-socket/install.js Line 120 in 1389850
I use HTTP in my shampoo environment_ proxy, https_ Proxy, but the request here is not used |
Hi @hehehai, yes it looks like we are missing the proxy configuration for downloading the mitm. Will need to fix this for you to be able to use it unless you can set a system proxy. |
@blakebyrnes Yes, system proxy is indeed a problem, but if there is no proxy, network problems will affect the installation of dependency Sorry, I'd like to ask why the dependent installation chooses this method of code download instead of NPM direct download. Is it because of the file size and update frequency? I think the current way sometimes leads to errors or abnormal information without feedback. I don't know why, but it makes it difficult to debug the program |
I wish I knew a better option. There are 3 binaries compiled "per-system" that we generate (chrome, mitm, replay), and one that we include (better-sqlite3). The size is too big to put directly into an npm package with every architecture and platform. At some point, you could more reliably see logs output from the program during npm runs, but now it seems to drown out most logging/output, which makes it hard to troubleshoot (I agree). |
You can get a sense for some of the assets involved here: https://github.com/ulixee/secret-agent/releases/tag/v1.4.1-alpha.5 Chrome is downloaded in a fashion similar to Puppeteer and Playwright. They don't seem to have found a better way (beyond looking for correct proxy settings, which I'm fixing) |
cli
yarn install secret-agent
env:
yarn: v1.22.5
node: v15.10.0
network location: chinese
The text was updated successfully, but these errors were encountered: