npm安装错误的版本

时间:2016-06-02 08:48:44

标签: angularjs npm package.json

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

--I think this is a start, make a table called MyDates with a column called ddate, then populate it with all the dates you are interested in 
--e.g. all of the dates in this year, you'll eventually be able to do that in SQL
--if you get the down and up time listed for each day, you will then be able to use GROUP functions to SUM it etc

SELECT
EquipmentDetailsDataModel.EquipmentDetails.Equipment
,MD.ddate
,CASE WHEN MD.ddate > StoppagesDataModel.StoppagesEvent.PlannedDownTime THEN MD.ddate ELSE StoppagesDataModel.StoppagesEvent.PlannedDownTime END DayDownTime
,CASE WHEN MD.ddate + 1 < StoppagesDataModel.StoppagesEvent.PlannedUpTime THEN MD.ddate + 1 ELSE StoppagesDataModel.StoppagesEvent.PlannedUpTime END DayUpTime

FROM
StoppagesDataModel.StoppagesEvent

INNER JOIN EquipmentDetailsDataModel.EquipmentDetails
ON StoppagesDataModel.StoppagesEvent.EquipmentKey = EquipmentDetailsDataModel.EquipmentDetails.EquipmentKey

JOIN MyDates MD ON StoppagesDataModel.StoppagesEvent.PlannedDownTime < MD.ddate + 1 AND  StoppagesDataModel.StoppagesEvent.PlannedUpTime > MD.ddate

WHERE
EquipmentDetailsDataModel.EquipmentDetails.Equipment IN ('22262','21617')
AND StoppagesDataModel.StoppagesEvent.PlannedDownTime >= N'06/01/2016 00:00:00'

当我跑步时:

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

1 个答案:

答案 0 :(得分:2)

尝试删除^并仅写:

"typings": "0.7.12"