zhihuifanqiechaodan / miniprogram-template

About 🎉 A magical miniprogram template
30 stars 7 forks source link

提示一些报错信息,运行不起来 #3

Open torome opened 1 year ago

torome commented 1 year ago

app.json 文件内容错误] app.json: ["usingComponents"]["van-nav-bar"]: "@vant/weapp/nav-bar/index" 未找到

torome commented 1 year ago

yarn install 时候也有错误的 yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Saved lockfile. $ husky install && npx husky add .husky/pre-commit 'npx lint-staged' husky - Git hooks installed Usage: husky install [dir] (default: .husky) husky uninstall husky set|add [cmd] error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

zhihuifanqiechaodan commented 1 year ago

app.json 文件内容错误] app.json: ["usingComponents"]["van-nav-bar"]: "@vant/weapp/nav-bar/index" 未找到

安装包以后记得在微信开发者工具选择工具选项编译npm包

zhihuifanqiechaodan commented 1 year ago

尝试删除.husky文件,重新运行命令yarn run prepare

cactus1949 commented 8 months ago
image

执行步骤: git clone yarn install 使用微信开发者工具导入项目 工具/构建npm 编译 然后就报了上述错误,麻烦帮忙看下问题

zhihuifanqiechaodan commented 8 months ago
image

执行步骤:

git clone

yarn install

使用微信开发者工具导入项目

工具/构建npm

编译

然后就报了上述错误,麻烦帮忙看下问题

升级你的编辑器