一直对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