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

无法下载依赖环境,没法玩,很沮丧! #1997

Closed
pkids opened this issue Jun 30, 2023 · 7 comments
Closed

无法下载依赖环境,没法玩,很沮丧! #1997

pkids opened this issue Jun 30, 2023 · 7 comments

Comments

@pkids
Copy link

pkids commented Jun 30, 2023

尊敬的开发者您好,我在群晖安装了青龙 正式版 v2.15.16,依赖管理里我手动添加axios,但是尝试了很多次都失败,在docker的命令行里输入npm install axios,进度条也是0%,麻烦您帮忙看看是怎么回事,有没有什么办法让我们“网络不好的”用户手动导入依赖环境。
(在您提供的demo里我试了下,输入axios能加载成功。)

image

image

image

image

@yoder
Copy link

yoder commented Jul 4, 2023

切换到国内npm源呢

@pkids
Copy link
Author

pkids commented Jul 4, 2023

切换到国内npm源呢

请问怎么切换到国内源啊?是不是先在docker的终端机里输入:npm config set registry https://registry.npmmirror.com

@pkids
Copy link
Author

pkids commented Jul 4, 2023

image

@whyour
Copy link
Owner

whyour commented Jul 4, 2023

image

你这是网络问题吧,你容器内能访问 baidu.com 吗,或者镜像源改为 https://registry.npmjs.org

@pkids
Copy link
Author

pkids commented Jul 4, 2023

在nas的ssh里能ping到 , 在容器的终端机里不能ping到
image
image

@whyour
Copy link
Owner

whyour commented Jul 4, 2023

在nas的ssh里能ping到 , 在容器的终端机里不能ping到 image image

那就是你容器连不上网,是不是群晖的容器要设置 host 模式

@pkids
Copy link
Author

pkids commented Jul 4, 2023

image
image
谢谢up主的解答,谢谢同样使用青龙面板前辈的解答,我重新创建了个docker容器,网络选择了上图那个同dockerhost相同,能下载依赖文件了,耶,好开心,准备大干一场,先把阿里云盘签到搞定~~

@whyour whyour closed this as completed Jul 4, 2023
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

3 participants