1.首先npm uninstall element-ui,后报错
npm ERR! code EEXIST
npm ERR! errno -4075
npm ERR! syscall mkdir
npm ERR! EEXIST: file already exists, mkdir 'C:UserspeterDesktoptesthes-service-provider-frontendnode_modules.stagingsource-map-0b5df56a'
npm ERR! File exists: C:UserspeterDesktoptesthes-service-provider-frontendnode_modules.stagingsource-map-0b5df56a
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UserspeterAppDataRoamingnpm-cache_logs2018-10-29T07_38_40_404Z-debug.log
2.安装新版element-ui后又提示成功
√ Installed 1 packages
√ Linked 7 latest versions
√ Run 0 scripts
√ All packages installed (1 packages installed from npm registry, used 1s(network 1s), speed 546.34kB/s, json 8(560.55kB), tarball 0B)
3.结果看项目的依赖文件版本还是以前的版本
安装运行时依赖要加
--save
或-S
才会更新到依赖里哦