vite create-vite create

Postman - Create a Linux launcher icon

Create a file named Postman.desktop under ~/Downloads/sfw/Postman/app/resources with below content: [Desktop Entry] Encoding=UTF-8 Name=Postman Exec=~ ......
launcher Postman Create Linux icon

Github Actions - Creating PostgreSQL service containers

# Service containers to run with `container-job` services: # Label used to access the service container postgres: # Docker Hub image image: postgres # ......

hive启动出现Cannot create directory /tmp/hive. Name node is in safe mode.

原因:进入了安全模式,hdfs在启动开始时会进入安全模式,这时文件系统中的内容不允许修改也不允许删除,直到安全模式结束。 执行命令: hadoop dfsadmin -safemode leave 退出安全模式即可 出现 Safe mode is OFF 表示成功退出 ......
hive directory Cannot create Name

学Vite(一、核心知识)

前言 先说一下写这个系列文章的念头哈,起因应该是之前在那块听过一次课,里面讲的编写一个vite插件,使用marked将转换md文件转换成js代码然后在Vue组件中使用的一个案例(用md来生成组件库文档)。 代码大概是这样子的。当时的vite版本使用的是2.5.3。 import path from ......
核心 知识 Vite

ElasticSearch之Create index API

创建指定名称的index。 命令样例如下: curl -X PUT "https://localhost:9200/testindex_002?pretty" -H 'Content-Type: application/json' -d' { "settings": { "index": { "nu ......
ElasticSearch Create index API

react项目vite报错:UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '??='

问题: vite报错:UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '??=' 今天clone一个vite的项目,安装依赖后运行npm run dev报错: UnhandledPromiseRejectionWarni ......

关于Vue3中调试APP触发异常:exception:white screen cause create instanceContext failed,check js stack -> at useStore (app-service.js:2309:15)解决方案

bug:reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->at us ......

vue3+vite项目优化静态资源使用云存储

项目中的问题 1. 当我们在维护自己的博客或者自己的网站的时候没有特别好的服务器就会响应特别的慢 2. 当我们项目特别大的时候也会首屏加载特别慢而且 vue项目打包后的js文件特别的庞大 还要加载各种资源就会特别的卡顿 3.当我们项目中用到了一些3D效果各种3D资源部特别的大的时候根本加载不出来 解 ......
静态 项目 资源 vue3 vite

vite 子项目 热部署 通过nginx,和父项目端口号不同,导致热更新的websocket报错的解决方案

vite 子项目 热部署 通过nginx,和父项目端口号不同,导致热更新的websocket报错的解决方案 我的父项目端口号是8888 子项目端口号是 8013 这里报错的原因就是,热更新的websocket在8013的服务上,但是页面访问的是8888端口的websocket 所以自然会爆红 ......

vite ts 安装 js-cookie 库,vscode找不到类型说明(有波浪线),解决方案

vite ts 安装 js-cookie 库,vscode找不到类型说明(有波浪线),解决方案 先安装库 https://www.npmjs.com/package/js-cookie 再安装类型 https://www.npmjs.com/package/@types/js-cookie 问题 然 ......
波浪 js-cookie 解决方案 类型 方案

vite plugin项目优化汇总

前端项目性能优化和开发体验优化是无法避免的一个话题,在之前使用 webpack 做应用构建的时候,有许多手段和插件来做优化。当使用 vite 构建应用时也有许多插件来做优化,本文对 vite 的优化插件或方法做下汇总。 一、打包性能优化 1. html 处理 vite-plugin-html vit ......
项目 plugin vite

Vue3 + Vite中使用unocss

什么是unocss? unocss是一个即时的原子CSS引擎,它可以让你用简短的类名来控制元素的样式,而不需要写复杂的CSS代码。 Unocss: Guide 用Vite安装和配置步骤:UnoCSS Vite Plugin 互动性文档:https://unocss.dev/interactive/( ......
unocss Vue3 Vite Vue

Vite4+Typescript+Vue3+Pinia 从零搭建(5) - 路由router

项目代码同步至码云 weiz-vue3-template Vue Router 是 Vue.js 的官方路由。它与 Vue.js 核心深度集成,让用 Vue.js 构建单页应用变得轻而易举。 1. 安装 npm i vue-router@4 2. 集成 1. 新建两页面进行示例 在src/view下 ......
路由 Typescript router Vite4 Pinia

As a project I always want to create for myself as a gift, the MVVM framework is more or less satisfying

I used to want to build a MVVM project for myself, especially since I wrote my mementowriter project which is no jQuery, and that was very time consum ......
satisfying framework project always create

create Process,进程

一、资源分配的基本单位,也是独立运行的基本单位是进程。 二、进程由两部分构成,一部分指一个内核对象,操作系统用它来管理进程,也是系统保存进程统计信息的地方。另一部分外核,由地址空间构成,包括文本区、数据区、堆栈区。文本区存储处理器执行的代码,数据区存储变量和进程执行期间使用的的动态内存分配,堆栈区存 ......
进程 Process create

vue Vite3出现错误runtime-core.esm-bundler.js:6835 Uncaught TypeError: normalizeKey is not a function at createBaseVNode (runtime-core.esm-bundler.js:6835:19)

原因是在引入Element-Plus的顺序在vue之前导致,重新调整下他们的顺序后,问题解决。 import App from './App.vue' import { setupI18n } from '/@/i18n' import { setupRouter } from '/@/router ......

vite.config开发经验分享

前言 在使用 vue3 + vite 实际开发过程中的一些经验分享,涵盖 vite 构建优化配置项的实践,以及打包配置性能优化的实践 plugin 项目优化汇总 @vitejs/plugin-vue vite 支持 vue 开发 按需引入组件库 unplugin-vue-components unp ......
经验 config vite

使用vue3和vite导入index.vue文件而不指定文件名

<script setup> import MapTimeLegend from "./components/MapTimeLegend" </script> [plugin:vite:import-analysis] Failed to resolve import "./components/M ......
文件 文件名 vue index vue3

Vite4+Typescript+Vue3+Pinia 从零搭建(4) - 代码规范

项目代码同步至码云 weiz-vue3-template 要求代码规范,主要是为了提高多人协同和代码维护效率,结合到此项目,具体工作就是为项目配置 eslint 和 prettier。 editorconfig 安装 EditorConfig for VS Code 插件,根目录下新建 .edito ......
Typescript 代码 Vite4 Pinia Vite

解决非root用户安装软件中cannot create regular file `/usr/local/lib/libz.a‘: Permission denied

解决非root用户安装软件中cannot create regular file `/usr/local/lib/libz.a': Permission denied 举例 解决办法 举例 比如我现在要安装一个软件叫zlib,安装过程如下: wget http://zlib.net/zlib-1.2 ......
Permission regular 用户 cannot create

vite + vitest + element Plus + vue3

遇到问题: 1. TypeError: Unknown file extension ".scss" for D:\workspace\ai_plat_front\node_modules\element-plus\theme-chalk\src\base.scss Serialized Error ......
element vitest vite Plus vue3

vite移动端适配

//先下包 npm i postcss-px-to-viewportimport pxtovw from 'postcss-px-to-viewport' //配置参数 移动端适配 const usePxtovw = pxtovw({ viewportWidth: 375, viewportUnit ......
vite

vite+ts@配置

//npm i @types/node 先下包解决无法找到到类型声明文件的错误 //在vite.config.ts引入 import resolve from 'path' export default defineConfig({ resolve: { alias: { '@': resolve( ......
vite ts

[AWS] Create a serverless API with Ampt and TypeScript

Ampt lets developers rapidly build, deploy, and scale JavaScript/TypeScript apps in the cloud without complicated configs or managing infrastructure. ......
serverless TypeScript Create Ampt with

启动vite和electron项目配置多个主进程

推荐 concurrently 点击查看代码 "dev": "concurrently \"nodemon --exec electron . \" \"vite\"", 成熟的脚手架 日常开发可以使用 electron-vite (opens new window)或 electron-vite- ......
electron 进程 多个 项目 vite

搭建GDAL JAVA环境;DXF转KML;坐标转换;PROJ: proj_create_from_database 错误解决

搭建JAVA GDAL环境 GDAL是一个栅格和矢量地理空间数据格式的转换库,由开源地理空间基金会按照MIT开源协议发布。作为一个库,它向应用程序为所有支持的数据格式提供统一的栅格抽象数据模型和矢量抽象数据模型。它还提供了用于数据转换和处理的各种有用的命令行实用工具。 GDAL官网: GDAL — ......

2023-11-23 npm install -g create-next-app ==>全局安装next,请确保你的node版本大于等于18.17.0

PS D:\xls\box> npm install -g create-next-app npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'create-next-app@14.0.3', npm WARN ......
next create-next-app 全局 install 版本

ubuntu-create parition

fdisk /dev/sdb Command (m for help): n Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-2097151999, default 2048): Last s ......
ubuntu-create parition ubuntu create

新建一个vite项目,使用ts语法的公共方法库的项目

要创建一个使用TypeScript语法的公共方法库项目,可以按照以下步骤使用Vite构建工具来设置项目: 安装Vite全局工具(如果已安装,请跳过此步骤): npm install -g create-vite ``` 创建新项目: create-vite my-library --template ......
项目 语法 方法 vite

如何给vite代理的network中显示代理地址

vite 代理的项目,一般看不到代理的目标地址 如图: 如果要查看代理的目标地址,本文提供两种方式 1,configure配置 如图,通过configure,我们可以拿到proxy代理实例,通过注册on事件,可以在回调函数里面拿到目标地址和请求的路径,从而设置header 2, bypass配置 其 ......
network 地址 vite