挑战:
https://www.freecodecamp.org/learn/information-security/information-security-with-helmetjs/install-and-require-helmet
https://github.com/freeCodeCamp/freeCodeCamp/blob/master/curriculum/challenges/english/09-information-security/information-security-with-helmetjs/install-and-require-helmet.english.md
此挑战是否需要有关如何实际安装指定版本的说明? 在repl.it上,如果您搜索软件包,它将只为您提供最新版本。
如果您运行npm i [email protected]
,它将在版本号之前添加带有尖号^
的软件包,但测试不允许这样做。 测试是否应允许插入符号?
如果将测试更改为允许^
不会引起前面提到的任何版本控制问题,那么我们应该这样做。 否则,我们可以添加一条注释,说明露营者应使用--save-exact
: npm install --save-exact [email protected]
只是备份一下:我们是要更改测试还是更改说明以明确说明版本?
就我个人而言,我会两个都说。
显示npm命令,了解如何安装特定的软件包版本,并使测试忽略/接受插入符号。
@lasjorg我喜欢。 这种教训是如此短暂,我也认为这将是添加有关有用的信息--save-exact
。
我将打开此窗口以获得一般帮助