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

介绍下 npm 模块安装机制,为什么输入 npm install 就可以自动安装对应的模块? #40

Open
Rashomon511 opened this issue Apr 1, 2019 · 0 comments

Comments

@Rashomon511
Copy link
Owner

    1. npm 模块安装机制:
      *发出npm install命令
    • 查询node_modules目录之中是否已经存在指定模块
      若存在,不再重新安装
      若不存在
      • npm 向 registry 查询模块压缩包的网址
      • 下载压缩包,存放在根目录下的.npm目录里
      • 解压压缩包到当前项目的node_modules目录

详解

@Rashomon511 Rashomon511 changed the title 第二十一题:介绍下 npm 模块安装机制,为什么输入 npm install 就可以自动安装对应的模块? 介绍下 npm 模块安装机制,为什么输入 npm install 就可以自动安装对应的模块? Apr 12, 2019
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