Difference between dependencies and devDependencies, devdependencies
Author: zhanhailiang Date: 2014-11-02
First, you need to understand:
- Use npm I node_module-save to automatically update the value of the dependencies field;
- Use npm I node_module-save-dev to automatically update the value of the devDependencies field;
For example:
[root@~/wade/git/node-lessons/test]# npm init[root@~/wade/git/node-lessons/test]# npm install express --save[root@~/wade/git/node-lessons/test]# npm install jslint --save-dev[root@~/wade/git/node-lessons/test]# cat package.json { "name": "test", "version": "1.0.0", "description": "test", "main": "main.js", "keywords": [ "test" ], "author": "wade", "license": "MIT", "dependencies": { "express": "^4.10.1" }, "devDependencies": { "jslint": "^0.6.5" }}
So what are the differences between the two fields?
- Npm package. json Chinese Document
- Npm-config
- What does devDependencies in package. json mean?
- Option to not install devDependencies
- -- Save-dev official pull record Added -- save-dev and -- save-optional to 'npm install'
- For details, refer to the dependency definition of nodejs package. json.
- How do you install "development only" NPM modules for Node. js (package. json )?
Summarize the above records to explain the differences between the two fields (personal understanding ):
- DevDependencies is only used for functional module dependencies such as the completion of integration testing in the development phase;
- For the production environment, you only need to use the required npm install-production module;
What is view dependencies in the computer?
This program is a small test tool of vc ++, used to view the program's external call functions and run the required DLL files. If you want to delete it, you can right-click the registry and choose view dependencies from the menu. You can also find some shortcut menu cleanup tools. There are many tools available now. Search a lot on the Internet.
Question about Project> dependencies in vc?
Indicates the project dependency,
Generally, large engineering software is put in a solution, which is divided into many modules (all are organized together in engineering mode, or dll, or lib ). This is also to ensure the convenience of synchronous development of the project.
Links between projects can be dynamically linked: LoadLibrary can be used for warehouse loading or static connections, additional dependent libraries can be added in project configuration, or # pragma comment (lib, "xxx. lib); there is also the method you mentioned:
In Project-> dependencies, this parameter is mainly set to ensure the order of system compilation. It is used to compile a Project without dependency items first and compile the Project with its parent dependency. The effect is the same as that of static links.