Skip to Content
Node与Express开发(第2版)
book

Node与Express开发(第2版)

by Ethan Brown
June 2021
Intermediate to advanced
290 pages
9h 21m
Chinese
Posts & Telecom Press
Content preview from Node与Express开发(第2版)
项目整顿
|
31
这个版本库也会随着本书的修订而更新。当版本库更新时,我会打上版本标签,这样当你
在读本书的某个版本时,便可以检出对应版本的代码。版本库当前的版本是
2.0.0
。我会大
致遵循
语义版本
的原则(本章后面会做更多说明)。补丁增量(最后一个数字)表示微小
变更,不太会影响你跟随该版本的书本学习。也就是说,如果版本库处于版本
2.0.15
,则
依旧对应本书的当前版。可是,如果小版本增量(第二个数字)不同(
2.1.0
)
,则说明版
本库的内容跟当前你在读的这个版本有所不同了,你应该检出版本标签以
2.0
开头的版本。
版本库从优使用
README.md
文件对示例代码进行说明。
无论何时你想要做些试验,要记得,是从标签检出的版本使你进入了
Git
所
说的“分离头”状态。尽管你可以放心地编辑任何文件,但如果不先创建一
个分支,你提交东西就不安全。因此,如果的确想要一个基于某个标签的试
验性分支,只需创建一个新的分支并检出。对此,使用一条命令即可:
git
checkout -b experiment
(这里
experiment
就是你的分支名,想叫什么都可
以)。然后在这个分支上,所有编辑和提交都是安全的。
4.5
 
npm
包
项目依赖的
npm
包就位于名为
node_modules
的目录下(称其为
node_modules
而不是
npm_packages
有些遗憾
,因为
Node
模块虽然相关却是不同的概念)。你可以放心地探索这
个目录,不管是为了满足好奇心还是为了调试程序,但千万不要修改里面的任何代码。随
意修改代码本就是个坏习惯,而且你所做的所有修改都可能被 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

面向对象的思考过程(原书第5版)

面向对象的思考过程(原书第5版)

马特 魏斯费尔德
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115565099