【问题标题】:cannot find module async with npm install找不到与 npm install 异步的模块
【发布时间】:2017-02-17 05:29:01
【问题描述】:

最近我尝试安装 npm。 每当我尝试为节点模块安装 npm 时, 我反复收到错误“找不到异步模块”,

{
  "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"
  }
}

谁能给我一些帮助.........

【问题讨论】:

  • 你的 package.json 是什么?
  • 我的项目没有任何包,json
  • 那你要安装什么?
  • 抱歉,已编辑代码
  • 你使用哪个版本的 npm?

标签: angular npm node-modules


【解决方案1】:

你可能需要升级 npm:

对于 Unix:

sudo npm install -g npm

对于 Windows: 按照以下说明操作:https://www.npmjs.com/package/npm

【讨论】:

    猜你喜欢
    • 2015-12-16
    • 2016-02-25
    • 2015-02-26
    • 2022-10-23
    • 2016-12-23
    • 2017-01-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多