npm 安装依赖时指定版本

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/littlebearGreat/article/details/88945014

拿vue+element-ui项目来说,在项目中要安装指定版本的element-ui

如下:

cnpm install [email protected] -S

依赖后面加@加版本号即可

猜你喜欢

转载自blog.csdn.net/littlebearGreat/article/details/88945014