Npm更新Node.js中依赖项的依赖项

时间:2016-01-04 09:04:17

标签: node.js express npm

我目前正在使用express 4.0,它使用节点模块“path-to-regexp”

path-to-regexp 0.1.7不允许zero or more path parameters

我想将express中的path-to-regexp升级到版本1.2.1

Npm update有docs中显示的深度参数,但我不想更新所有表达的依赖项,只是路径到regexp。

我也更愿意在没有表达快递的情况下这样做,并且无需手动更改快递'package.json。

1 个答案:

答案 0 :(得分:1)

你可以尝试

 cd node_modules/express
 npm install path-to-regexp@1.2.1
相关问题