npm通知创建一个lockfile作为package-lock.json。你应该提交这个文件 [英] npm notice created a lockfile as package-lock.json. You should commit this file

查看:20628
本文介绍了npm通知创建一个lockfile作为package-lock.json。你应该提交这个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图用 npm install express 加载express的骨架。它输出以下行:

I have been trying to load the skeleton of express with npm install express. It outputs the following line:


npm通知创建一个lockfile作为package-lock.json。你应该提交这个文件。

npm notice created a lockfile as package-lock.json. You should commit this file.

为了自动加载模板ejs和css引擎,该怎么办?

What should I do in order to load the template ejs and css engine automatically?

推荐答案

是的。你应该提交它。


此文件旨在提交到源存储库

This file is intended to be committed into source repositories

您可以阅读更多关于它是什么/它是什么这里

You can read more about what it is/what it does here:


package-lock.json自动为任何npm修改node_modules树或包的操作生成以.json。它描述了生成的确切树,以便随后的安装能够生成相同的树,而不管中间依赖更新。

package-lock.json is automatically generated for any operations where npm modifies either the node_modules tree, or package.json. It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates.

这篇关于npm通知创建一个lockfile作为package-lock.json。你应该提交这个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆