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

[QUESTION]有没有简单一点的安装方式? #53

Open
xmsz opened this issue Oct 6, 2021 · 1 comment
Open

[QUESTION]有没有简单一点的安装方式? #53

xmsz opened this issue Oct 6, 2021 · 1 comment

Comments

@xmsz
Copy link

xmsz commented Oct 6, 2021

问题

  • githubusercontent.com 这个被墙访问不了
  • install.sh 也是很多被墙的指令
  • npm i -g 安装后 找不到指令?,特别是docker里根本不能用
  • 直接下载调用遇到./tnvm.sh: line 834: syntax error: unexpected "(" (expecting "}")
  • 不想用alinode-docker
@xmsz
Copy link
Author

xmsz commented Oct 6, 2021

临时解决

  1. 被墙的问题
RUN wget -O- https://raw.githubusercontents.com/aliyun-node/tnvm/master/install.sh  | sed -e "s/raw.githubusercontent.com/raw.fastgit.org/g" | sed -e "s/github.com/hub.fastgit.org/g" | bash

  1. unexpected的问题
    修改文件里的语法

  2. 修改Node路径

ENV NODE_PATH $TNVM_DIR/versions/alinode/v$ALINODE_VERSION/lib/node_modules
ENV PATH      $TNVM_DIR/versions/alinode/v$ALINODE_VERSION/bin:$PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant