首页 > 其他分享 >npm加参数--host启动报错 Could not auto-determine entry point from rollupOptions or html files and there are

npm加参数--host启动报错 Could not auto-determine entry point from rollupOptions or html files and there are

时间:2023-08-18 18:23:08浏览次数:38  
标签:pre files -- 0.0 host npm 报错

参考:https://blog.csdn.net/qq_41664096/article/details/118961381
使用以下命令启动npm只能本机访问

npm run dev

如果需要网络访问则需要加参数--host

npm run dev --host 0.0.0.0

会报错

(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.

解决方法
使用以下方法启动

npx vite --host 0.0.0.0

参考里面的其他方法还没有测试

标签:pre,files,--,0.0,host,npm,报错
From: https://www.cnblogs.com/minseo/p/17641246.html

相关文章

  • burpsuite靶场----SQL注入13----oracle的CAST报错注入
    burpsuite靶场----SQL注入13----oracle的CAST报错注入靶场地址https://portswigger.net/web-security/sql-injection/blind/lab-sql-injection-visible-error-based正式开始1.通过在TrackingId=JBhlRizkqfo87Hq8后面添加'和''(两个单引号)猜测是oracle数据库添加'报错,添加''......
  • AOP源码解析:AspectJExpressionPointcutAdvisor类
    先看看AspectJExpressionPointcutAdvisor的类图再了解一下切点(Pointcut)表达式,它指定触发advice的方法,可以精确到返回参数,参数类型,方法名1packageconcert;23publicinterfacePerformance{4voidperform();5}AspectJExpressionPointcutAdvisor源码,官......
  • 构建高性能的后端服务:使用 Node.js、Express 和 MongoDB
    在现代应用开发中,构建高性能的后端服务是关键所在。本文将介绍如何使用Node.js、Express框架和MongoDB数据库来构建一个高性能的后端服务,实现数据存储与检索。为什么选择Node.js、Express和MongoDB?Node.js:Node.js是一个基于ChromeV8引擎的JavaScript运行时,具有非阻塞......
  • [LeetCode][10]regular-expression-matching
    ContentGivenaninputstrings andapatternp,implementregularexpressionmatchingwithsupportfor'.'and'*'where:'.'Matchesanysinglecharacter.​​​​'*'Matcheszeroormoreoftheprecedingelement.T......
  • 读取xls文件时报错 Initialisation of record 0x203(NumberRecord) left 4 bytes rema
    项目背景:公司的一个客户报告项目需要同步及抽取客户方的文件数据,文件类型为xls格式,文件为客户方的第三方厂商系统批量生成,工具及方法不明问题:读取该类xls文件后,无法成功创建Workbook,报错提示“Initialisationofrecord0x203(NumberRecord)left4bytesremainingstilltob......
  • spring配合hibernate报错:sessionFactory or hibernateTemplate is required
    Causedby:java.lang.IllegalArgumentException:'sessionFactory'or'hibernateTemplate'isrequired atorg.springframework.orm.hibernate3.support.HibernateDaoSupport.checkDaoConfig(HibernateDaoSupport.java:118) atorg.springframework.......
  • LeetCode[10]RegularExpressionMatching
    ContentGivenaninputstrings andapatternp,implementregularexpressionmatchingwithsupportfor'.'and'*'where:'.'Matchesanysinglecharacter.​​​​'*'Matcheszeroormoreoftheprecedingelement.T......
  • 容器化部署nacos 1.4.6报错caused: The specified key byte array is 0 bits which is
    nacos2.0+与nacos1.x区别nacos在2.0+版本开始使用grpc与客户端通信,并且通过非8848端口通信主要是有两个端口端口与主端口的偏移量描述98481000客户端gRPC请求服务端端口,用于客户端向服务端发起连接和请求98491001服务端gRPC请求服务端端口,用于服务间同步等......
  • 解决小程序报错 getLocation:fail the api need to be declared in the requiredPriva
    一、unipp项目打开uniapp项目的配置文件manifest.json,选择“源码视图”。/*小程序特有相关*/"mp-weixin":{"appid":"你的开发者id","setting":{"urlCheck":true,"es6":true,"postcss":......
  • nginx报错: nginx: [error] open() "/opt/nginx/nginx.pid" failed (2: No such file
    出现故障的原因:nginx:[error]open()"/opt/nginx/nginx.pid"failed(2:Nosuchfileordirectory)   服务器重启后,重新启动nginx报错nginx.pid这个文件找不到了!       因为每次重新启动系统,nginx.pid被自动删除。解决方案:    重新生......