小编Aki*_*mez的帖子

npm 安装了错误的版本

在我执行 npm install 后,我看到typings 的版本是 1.0.3。但是在我的 package.json 中,我准确地写了我想要的版本。知道发生了什么吗?npm 总是试图安装最新的吗?

"devDependencies": {
    "nodemon": "^1.9.2",
    "promise": "^7.1.1",
    "request": "^2.72.0",
    "require-dir": "^0.3.0",
    "typescript": "^1.8.7",
    "typings": "^0.7.12"
  }
Run Code Online (Sandbox Code Playgroud)

当我运行时:

typings -v
1.0.3
Run Code Online (Sandbox Code Playgroud)

npm angularjs package.json

1
推荐指数
1
解决办法
3615
查看次数

标签 统计

angularjs ×1

npm ×1

package.json ×1