在我执行 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)