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

can not change npm repository of [nodejs runtime]? #989

Open
2 tasks
chendelin1982 opened this issue Nov 21, 2024 · 1 comment
Open
2 tasks

can not change npm repository of [nodejs runtime]? #989

chendelin1982 opened this issue Nov 21, 2024 · 1 comment
Labels
feature Type label, New feature or request

Comments

@chendelin1982
Copy link
Contributor

What type of your feature request?

Can not change npm repository of [nodejs runtime] by npm set respository?

Do you have Clear solution

  • No solution, need research
  • Yes, solution detail below

Discribe you solution here:

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

@chendelin1982 chendelin1982 added the feature Type label, New feature or request label Nov 21, 2024
@zhaojing1987
Copy link
Contributor

node容器默认为production模式
查看命令:echo $NODE_ENV
通过 NODE_ENV=development 或 production 可以切换
生产模式下是不会安装dev的依赖包的,如果是进行开发调试,会导致依赖报错;
用户需要根据自己实际的需求进行设置 (这里还是要向用户说明)

node切换源:
默认为官方源:http://registry.npmjs.org/
查看命令:npm config get registry
切换命令:npm config set registry https://registry.npm.taobao.org/ (淘宝源)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Type label, New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants