This is probably not a problem with npm.

项目场景:

新创建的vue3项目,根据elementplus官网安装步骤进行按需导入安装,运行项目报错

This is probably not a problem with npm.There is likely additional logging output above. 


原因分析:

是elementplus安装版本和自动加载方法的版本不适应的造成的。


 

具体问题: 

具体报错信息: Cannot find module ‘node:module‘ 

 

 


解决方案:

卸载已安装的elementplus和自动导入包的插件。

安装指定版本的elementplus和插件

npm install element-plus@2.1.11 --save
npm install -D unplugin-vue-components@0.19.3 unplugin-auto-import@0.7.1 

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-01-03 15:28:03       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-03 15:28:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-03 15:28:03       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-03 15:28:03       20 阅读

热门阅读

  1. MySQL5.7更新的内容

    2024-01-03 15:28:03       33 阅读
  2. 微服务(12)

    2024-01-03 15:28:03       36 阅读
  3. bash脚本从ini文件读取设置

    2024-01-03 15:28:03       41 阅读
  4. Word2Vec原理+gensim实现

    2024-01-03 15:28:03       45 阅读
  5. MyBatis_传入参数的问题

    2024-01-03 15:28:03       37 阅读
  6. 云主机存储网络相关技术概念及网络拓扑介绍

    2024-01-03 15:28:03       39 阅读
  7. 断言assert

    2024-01-03 15:28:03       31 阅读
  8. 什么是制造业中的数字孪生?

    2024-01-03 15:28:03       38 阅读
  9. SpringBoot 整合ES实现分页查询和滚动查询

    2024-01-03 15:28:03       36 阅读