dagre-d3软件包在node_modules中不存在

时间:2018-07-27 01:21:10

标签: angular npm node-modules dagre-d3 package-lock.json

我使用npm install dagre-d3命令安装了dagre-d3,更改反映在package-lock.json文件中:

"dagre-d3": {
  "version": "0.6.1",
  "resolved": "https://registry.npmjs.org/dagre-d3/-/dagre-d3-0.6.1.tgz",
  "integrity": "sha512-KvF8GIxcsTBgB+Pgu6aqdkRGhZwyxMs1MUe2C5Mr8gFnQZtyeXfl08fqcS/EF5i9AAPWSKtnxJHXgMYS4WqB4w==",
  "requires": {
    "d3": "4.13.0",
    "dagre": "0.8.2",
    "graphlib": "2.1.5",
    "lodash": "4.17.10"
  }
}

在package.json文件中:

"dependencies": {
  "dagre-d3": "^0.6.1",
  "graphlib-dot": "^0.6.2"
}

但是,node_modules文件夹中没有名为dagre-d3的软件包,因此我无法使用dagre-d3进行工作。我正在使用Angular6和Angular-CLI6。如何解决此问题?

0 个答案:

没有答案