【问题标题】:Angular2-google-maps library cant be installedAngular2-google-maps 库无法安装
【发布时间】:2016-06-07 20:17:35
【问题描述】:

我正在尝试安装 angular2-google-maps 库,但是当我尝试安装时它一直在抛出错误。这是我要使用的库:https://angular-maps.com/docs/getting-started.html

它老是给我这个错误!

有人可以帮我解决这个问题吗!?这是我的 package.json

    {
  "name": "angular2-quickstart",
  "version": "1.0.0",
  "scripts": {
    "start": "concurrent \"npm run tsc:w\" \"npm run lite\" ",
    "tsc": "tsc",
    "tsc:w": "tsc -w",
    "lite": "lite-server",
    "typings": "typings",
    "postinstall": "typings install"
  },
  "license": "ISC",
  "dependencies": {
    "angular2": "2.0.0-beta.7",
    "bootstrap": "^3.3.6",
    "es6-promise": "^3.0.2",
    "es6-shim": "^0.33.3",
    "jquery": "^2.2.1",
    "moment": "^2.11.2",
    "primeng": "^0.5.0",
    "reflect-metadata": "0.1.2",
    "rxjs": "5.0.0-beta.2",
    "systemjs": "0.19.22",
    "zone.js": "0.5.15"
  },
  "devDependencies": {
    "concurrently": "^2.0.0",
    "font-awesome": "^4.5.0",
    "gulp": "^3.9.1",
    "gulp-bless": "^3.0.1",
    "gulp-compass": "^2.1.0",
    "gulp-if": "^2.0.0",
    "gulp-imagemin": "^2.4.0",
    "gulp-livereload": "^3.8.1",
    "gulp-ng-annotate": "^2.0.0",
    "gulp-sass": "^2.2.0",
    "gulp-sourcemaps": "^1.6.0",
    "gulp-uglify": "^1.5.3",
    "gulp-uglifycss": "^1.0.6",
    "gulp-watch": "^4.3.5",
    "lite-server": "^2.1.0",
    "typescript": "^1.7.5",
    "typings": "^0.6.8"
  }
}

如你所见,我已经准备好了版本 rxjs: 5.0.0-beta.2

现在突然不在 npm 的注册表中了

【问题讨论】:

    标签: typescript angular


    【解决方案1】:

    你可以试试这个:

    dependecies 下的package.json 文件中添加"angular2-google-maps":"0.10.0",然后在项目文件夹中执行npm install

    【讨论】:

      【解决方案2】:

      您的 Node.JS 版本 0.10.25 太旧了。请更新到 v5 或更高版本

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-03-28
        • 1970-01-01
        • 2017-06-10
        • 2017-10-14
        • 1970-01-01
        • 2023-03-03
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多