hooray / fantastic-startkit Goto Github PK
View Code? Open in Web Editor NEW一款简单好用的 Vue 项目启动套件,基于 Vue3 & Vite
Home Page: https://hooray.github.io/fantastic-startkit/
License: MIT License
一款简单好用的 Vue 项目启动套件,基于 Vue3 & Vite
Home Page: https://hooray.github.io/fantastic-startkit/
License: MIT License
pnpm run dev
> @ dev /XXX/我的目录/frontEnd
> vite
╔════════════════════════════════════════════════╗
║ ║
║ 由 Fantastic-startkit 驱动 ║
║ ║
║ https://hooray.gitee.io/fantastic-startkit ║
║ ║
╚════════════════════════════════════════════════╝
error when starting dev server:
Error: listen EADDRNOTAVAIL: address not available 198.18.0.217:5173
at Server.setupListenHandle [as _listen2] (node:net:1800:21)
at listenInCluster (node:net:1865:12)
at GetAddrInfoReqWrap.doListen [as callback] (node:net:2014:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8)
ELIFECYCLE Command failed with exit code 1.
显然,我的本地ip是:192.168.1.132
环境:
uname -a
Darwin MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Sat Jan 27 14:26:10 PST 2024; root:xnu-10063.100.633~14/RELEASE_ARM64_T6000 arm64
➜ frontEnd git:(example) ✗ node -v
v18.19.1
➜ frontEnd git:(example) ✗ npm -v
10.2.4
我的项目git仓库是在/home/rain/Desktop/test
目录,然后在仓库中建立目录v1/manager,在这个manager目录中使用了fantastic-startkit(从https://gitee.com/hooray/fantastic-startkit.git 中clone然后复制粘贴过来),也就是说fantastic-startkit的package.json位置是在/home/rain/Desktop/test/v1/manager/package.json
当我根据文档,将package.json中 "postinstall": "simple-git-hooks"
修改成 "postinstall": "cd ../.. && simple-git-hooks"
后,执行pnpm install报错
[ERROR], Was not able to set git hooks. Error: Error: ENOENT: no such file or directory, stat '/home/rain/Desktop/test/package.json'
将package.json文件修改回 "postinstall": "simple-git-hooks"
,执行pnpm install正常通过。提示
[INFO] Successfully set the pre-commit with command: pnpm lint-staged
[INFO] Successfully set all git hooks
但是当我执行git commit提交时,产生了下面的错误提示,无法提交
ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND No package.json (or package.yaml, or package.json5) was found in "/home/rain/Desktop/test".
请问要怎样才能正常commit,谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.