nodejs的package.json配置参数

本文探讨了Node.js中package.json文件的配置参数,通过VSCode的注释展示了各项选项,并提醒注意中文注释可能非官方配置。同时,提供了官方文档链接及查找本地npm文档的方法。
摘要由CSDN通过智能技术生成

一直对node设置package.json的参数不甚了解,借着vscode工具的注释,我把package.json中的options全部展示一下,中文注释部分可能不是package.json里的配置参数,要慎用!!!至于没有注释的要么是重复的,要么就是没有提示。

后来找到的官方文档地址:/nodejs/node_modules/npm/html/doc/files/package.json.html

找到你下载的node目录,然后根据上面的路径打开html页面。当然你也可以通过npm i npm --save下载下来根据上面的路径查找。

{
  "name": "express", // The name of the package.
  "version": "1.0.0", // Version must be parseable by node-semver, which is bundled with npm as a dependency.
  "description": "express", // This helps people discover your package, as it's listed in 'npm search'.
  "main": "index.js", // The main field is a module ID that is the primary entry point to your program.
  // The 'scripts' member is an object hash of script commands that are run at various times in the lifecycle of your package. The
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值