为什么npm安装不需要包?

时间:2018-05-15 09:25:55

标签: npm npm-install package.json

我想知道是什么让" npm install" 从这个package.json dependecies安装@angula?

"dependencies": {
    "@trust/webcrypto": "^0.9.0",
    "body-parser": "^1.18.2",
    "civic-sip-api": "^1.0.1",
    "cookie-parser": "^1.4.3",
    "cors": "^2.8.4",
    "ethereumjs-testrpc": "^6.0.3",
    "express": "^4.16.3",
    "express-jwt": "^5.3.1",
    "gun": "^0.9.993",
    "ipfs": "^0.28.2",
    "jsonwebtoken": "^8.2.1",
    "md5": "^2.2.1",
    "orbit-db": "^0.19.7",
    "passport": "^0.4.0",
    "passport-local": "^1.0.0",
    "sha3": "^1.2.0",
    "socket.io": "^2.1.0",
    "socketio-jwt": "^4.5.0",
    "uport-connect": "^0.7.2",
    "web3": "^0.20.6"
  },

运行" npm install"在项目文件夹中,我得到了一些不需要的软件包,例如 @angular,@ angular-devkit,@ ngtools

1 个答案:

答案 0 :(得分:1)

它们是每个模块的依赖关系。如果你打开每个模块,它有一个package.json,其中包含安装模块的依赖项。