详解关于Vue版本不匹配问题(Vue packages version mismatch)

 更新时间:2018年09月17日 09:48:08   作者:zhengrong__  
这篇文章主要介绍了详解关于Vue版本不匹配问题(Vue packages version mismatch),小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

今天再npm run dev时遇到一个错误:


由于当时vue版本已经到2.9.2版本。按照提示更新,无果。随后发现时由于weex环境的问题。只要巡行以下代码

weex xbind repair toolkit-repair
weex repair


即可解决npm run dev无法启动的问题。

补充:

1、npm install vue-template-compiler@2.5.3 出现此问题

npm ERR! path G:\XXX.Web\node_modules\fsevents\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall lstat
npm ERR! Error: EPERM: operation not permitted, lstat 'G:\XXX.Web\node_modules\fsevents\node_modules'
npm ERR!  { Error: EPERM: operation not permitted, lstat 'G:\XXX.Web\node_modules\fsevents\node_modules'
npm ERR!   stack: 'Error: EPERM: operation not permitted, lstat \'G:\\XXX.Web\\node_modules\\fsevents\\node_modules\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'lstat',
npm ERR!   path: 'G:\\XXX.Web\\node_modules\\fsevents\\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-03-15T07_11_27_516Z-debug.log

解决方式:

npm install weex-toolkit -g

 2、Error: EPERM: operation not permitted

npm ERR! Error: EPERM: operation not permitted, scandir 'G:\XXX.Web\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR!  { Error: EPERM: operation not permitted, scandir 'G:\XXX.Web\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR!   stack: 'Error: EPERM: operation not permitted, scandir \'G:\\XXX.Web\\node_modules\\fsevents\\node_modules\\getpass\\node_modules\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'scandir',
npm ERR!   path: 'G:\\XXX.Web\\node_modules\\fsevents\\node_modules\\getpass\\node_modules' }

解决方式:

npm cache clean --force

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

相关文章

  • Vue2实现图片的拖拽,缩放和旋转效果的示例代码

    Vue2实现图片的拖拽,缩放和旋转效果的示例代码

    这篇文章主要为大家介绍了如何基于vue2 实现图片的拖拽、旋转、鼠标滚动放大缩小等功能。文中的示例代码讲解详细,感兴趣的小伙伴可以尝试一下
    2022-11-11
  • vue3使用ref和reactive的示例详解

    vue3使用ref和reactive的示例详解

    Vue 3引入了两个新的API,ref和reactive,用于创建响应式对象,这两个方法都位于Vue.prototype上,因此可以在组件实例中直接使用,本文给大家介绍vue3使用ref和reactive的示例,感兴趣的朋友跟随小编一起看看吧
    2023-10-10
  • Vue项目中使用Vux的安装过程

    Vue项目中使用Vux的安装过程

    这篇文章主要介绍了Vue项目中使用Vux的安装过程,非常不错,具有参考借鉴价值,需要的朋友可以参考下
    2018-05-05
  • vue项目中如何引入cesium

    vue项目中如何引入cesium

    这篇文章主要介绍了vue项目中如何引入cesium问题,具有很好的参考价值,希望对大家有所帮助。如有错误或未考虑完全的地方,望不吝赐教
    2023-04-04
  • vue中两种路由模式的实现详解

    vue中两种路由模式的实现详解

    这篇文章主要为大家详细介绍了vue中两种路由模式的实现,文中的示例代码讲解详细,具有一定的学习价值,感兴趣的小伙伴可以了解一下
    2023-08-08
  • vue 组件内获取actions的response方式

    vue 组件内获取actions的response方式

    今天小编就为大家分享一篇vue 组件内获取actions的response方式,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
    2019-11-11
  • webstorm提示 @路径 Module is not installed的问题

    webstorm提示 @路径 Module is not installed的问题

    这篇文章主要介绍了webstorm提示 @路径 Module is not installed的问题,具有很好的参考价值,希望对大家有所帮助。如有错误或未考虑完全的地方,望不吝赐教
    2022-11-11
  • vue-router单页面路由

    vue-router单页面路由

    这篇文章主要为大家详细介绍了vue-router单页面路由的相关资料,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
    2017-06-06
  • Vue路由跳转与接收参数的实现方式

    Vue路由跳转与接收参数的实现方式

    这篇文章主要介绍了Vue路由跳转与接收参数的实现方式,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
    2023-04-04
  • webpack4打包vue前端多页面项目

    webpack4打包vue前端多页面项目

    这篇文章主要介绍了webpack4打包vue前端多页面项目的相关知识,非常不错,具有一定的参考借鉴价值,需要的朋友可以参考下
    2018-09-09

最新评论