vue ui出现cannot set property ‘context’ of null

项目场景:

cannot set property ‘context’ of null

问题描述:

vue ui出现cannot setproperty ‘context’ of null

原因分析:

1、nodejs版本过低,建议更换10.0以上
2、vue-cli使用vue ui 需要3.6版本及其以上
3、npm的版本过低

解决方案:

分别通过
node --version
vue --version
npm --version
查看当前版本号

可以通过
npm install -g npm 或者cnpm install -g npm更新最新版本npm
npm install @vue/cli -g或者cnpm install @vue/cli -g更新最新版本vue/cli
通过官网http://nodejs.cn下载最新版本的node.js

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
猜你喜欢
  • 2021-11-16
  • 2021-10-16
  • 2022-01-09
  • 2021-06-23
  • 2022-12-23
相关资源
相似解决方案