使用npm install找不到模块异步

时间:2016-10-08 08:34:49

标签: angular npm node-modules

最近我尝试安装npm。  当我尝试为节点模块安装npm时,  我反复得到错误`"找不到模块async",

{
  "devDependencies": {
    "concurrently": "^1.0.0",
    "gulp": "^3.9.1",
    "gulp-concat": "^2.6.0",
    "gulp-jshint": "^2.0.1",
    "gulp-rename": "^1.2.2",
    "gulp-sass": "^2.3.1",
    "gulp-uglify": "^1.5.3",
    "jasmine-core": "~2.3.4",
    "jshint": "^2.9.2",
    "karma": "~0.13.15",
    "karma-jasmine": "~0.3.6",
    "karma-phantomjs2-launcher": "^0.3.2",
    "lite-server": "2.0.1",
    "traceur": "^0.0.91",
    "typescript": "^1.7.3",
    "systemjs-builder": "^0.15.16",
    "yargs": "^4.7.0",
    "gulp-minify": "0.0.11",
    "path": "^0.12.7"
  },
  "dependencies": {
    "@angular/common": "2.0.0-rc.4",
    "@angular/compiler": "2.0.0-rc.4",
    "@angular/core": "2.0.0-rc.4",
    "@angular/forms": "0.2.0",
    "@angular/http": "2.0.0-rc.4",
    "@angular/platform-browser": "2.0.0-rc.4",
    "@angular/platform-browser-dynamic": "2.0.0-rc.4",
    "@angular/router": "3.0.0-beta.2",
    "@angular/upgrade": "2.0.0-rc.4",
    "es6-shim": "^0.35.0",
    "events": "^1.0.2",
    "fbjs": "^0.3.1",
    "flux": "^2.1.1",
    "ng2-toastr": "^0.3.1",
    "ng2-tooltip": "0.0.2",
    "reflect-metadata": "^0.1.3",
    "rxjs": "5.0.0-beta.6",
    "systemjs": "0.19.27",
    "zone.js": "^0.6.12"
  }
}

任何人都可以建议我帮助.........

1 个答案:

答案 0 :(得分:0)

您可能需要升级npm:

对于Unix:

sudo npm install -g npm

对于Windows: 按照:https://www.npmjs.com/package/npm

上的说明操作