Skip to content

CN can't postinstall via `yarn add` #2251

Answered by code-asher
AlishaHawkward asked this question in Q&A
CN can't postinstall via `yarn add` #2251
25d ago · 2 answers

error /usr/local/share/.config/yarn/global/node_modules/code-server: Command failed.
Exit code: 35
Command: ./postinstall.sh
Arguments:
Directory: /usr/local/share/.config/yarn/global/node_modules/code-server
Output:
curl: (35) TCP connection reset by peer

Replies

2 comments

It looks like some kind of network issue. Maybe the cloud agent is failing to download?

OS="$(uname | tr '[:upper:]' '[:lower:]')"
curl -fsSL "https://storage.googleapis.com/coder-cloud-releases/agent/latest/$OS/cloud-agent" -o ./lib/coder-cloud-agent
chmod +x ./lib/coder-cloud-agent

We should catch the error so it won't fail the install.

1 reply
@AlishaHawkward

Yes, I use https_proxy to fixed it! tks

Answer selected by code-asher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
2 participants
Beta
You can’t perform that action at this time.