Skip to content

Commit

Permalink
[Chinese-translation]little change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jin jing committed Jan 15, 2018
1 parent 3f3f7b9 commit a274116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sections/production/lockdependencies.chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

您的代码依赖于许多外部包,假设它“需要”和使用momentjs-2.1.4,默认情况下,当布署到生产中时,NPM可能会获得momentjs 2.1.5,但不幸的是,这将带来一些新的bug。使用NPM配置文件和设置 ```–save-exact=true``` 指示NPM去完成安装,以便下次运行 ```npm install```(在生产或在Docker容器中,您计划将其用于测试)时,将获取相同的依赖版本。另一种可选择受欢迎的方法是使用一个shrinkwrap文件(很容易使用NPM生成)指出应该安装哪些包和版本,这样就不需要环境来获取新版本了。

***更新:** 在NPM5中,使用.shrinkwrap依赖项会被自动锁定。Yarn,一个新兴的包管理器,默认情况下也会锁定依赖项。
* **更新:** 在NPM5中,使用.shrinkwrap依赖项会被自动锁定。Yarn,一个新兴的包管理器,默认情况下也会锁定依赖项。

<br/><br/>

Expand Down

0 comments on commit a274116

Please sign in to comment.