Json versus package.json
Json is the configuration file generated when building a project, which contains the configuration information needed for the project, as well as various dependencies, including name and version number; It is divided into development dependencies and operation dependencies. ^ Refers to other updated versions after the current major version
{
"name": "managenmet",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}
Json is the latest version dependency automatically generated after NPM install
It is used to record the version number of the current project dependency and cannot be changed. When you delete node_modules or modify package.json and execute NPM install, the current project dependencies will be updated to the appropriate version according to the rules
Read More:
- 【ipfs-api】npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
- Node.js Medium package.json The difference between devdependences and dependencies
- Python json.dumps () json.dump The difference between ()
- Dependency frame package of Maven Alibaba JSON
- [Solved] Please verify that the package.json has a valid “main” entry
- Error in downloading update creation environment of CONDA: collecting package metadata (current_ repodata.json): failed
- CONDA failed to create environment (collecting package metadata(repodata.json): failed)
- Idea Maven project uses package to package and report error (package does not exist)
- Configuration file for vscode setting.json UI interface or JSON form
- [jQuery] jQuery operates on JSON strings or JSON objects
- User defined profile in vscode settings.json And default configuration defaultSettings.json
- Error reading JSON file: json.decoder.JSONDecodeError : Extra data: line 6 column 2 (char 1329)
- JSON data format net.sf.json .JSONException: A JSONObject text must begin with ‘{‘ at character 1 of Error:(f…
- Unable to read workspace file ‘D:\angular.json‘: Invalid JSON character: “ “ at
- How to select the jar package version for Maven package when the jar package versions referenced by multiple modules are inconsistent
- [Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class
- Unity package APK exception failed to re package resources
- Failed to import package with error: couldn’t decompress package
- Julia install and use the extension package package (ERROR: UndefVarError: Pkg not defined)
- Error while importing package: couldn’t decompress package