wepy 初始化错误?

wepy init standard ./
npm install
wepy build --watch
第一次编译时报错:
file
手动执行 : npm install util 再次编译后:
file

启动小程序后:
file
file

晨读秀
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 10
晨读秀

@Summer 大神求助

6年前 评论
liyu001989

开发者工具 『ES6 转 ES5』,『上传代码时样式自动补全』,『代码上传时自动压缩』 这三个关闭了吗

6年前 评论
晨读秀

file@liyu001989

6年前 评论
晨读秀

默认关闭的

6年前 评论
晨读秀

file

6年前 评论
晨读秀

package.json 文件

  {
   "name": "geekf",
   "version": "0.0.1",
   "description": "A WePY project",
   "main": "dist/app.js",
   "scripts": {
     "dev": "wepy build --watch",
     "build": "cross-env NODE_ENV=production wepy build --no-cache",
     "dev:web": "wepy build --output web",
     "clean": "find ./dist -maxdepth 1 -not -name 'project.config.json' -not -name 'dist' | xargs rm -rf",
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "wepy": {
     "module-a": false,
     "./src/components/list": "./src/components/wepy-list.wpy"
   },
   "author": "vijay",
   "license": "MIT",
   "dependencies": {
     "redux": "^3.7.2",
     "redux-actions": "^2.2.1",
     "redux-promise": "^0.5.3",
     "wepy-redux": "^1.5.3",
     "wepy": "^1.6.0",
     "wepy-async-function": "^1.4.4",
     "wepy-com-toast": "^1.0.2"
   },
   "devDependencies": {
     "babel-eslint": "^7.2.1",
     "babel-plugin-transform-class-properties": "^6.24.1",
     "babel-plugin-transform-decorators-legacy": "^1.3.4",
     "babel-plugin-transform-export-extensions": "^6.22.0",
     "babel-plugin-transform-object-rest-spread": "^6.26.0",
     "babel-preset-env": "^1.6.1",
     "cross-env": "^5.1.3",
     "eslint": "^3.18.0",
     "eslint-config-standard": "^7.1.0",
     "eslint-friendly-formatter": "^2.0.7",
     "eslint-plugin-html": "^2.0.1",
     "eslint-plugin-promise": "^3.5.0",
     "eslint-plugin-standard": "^2.0.1",
     "wepy-eslint": "^1.5.3",
     "wepy-compiler-babel": "^1.5.1",
     "wepy-compiler-less": "^1.3.10"
   }
 }
6年前 评论
liyu001989

稍等,我查一下,应该不影响后面的学习,可以先继续

6年前 评论
晨读秀

@liyu001989 兄弟,多谢了!
我刚刚在第一次编译出错后,手动执行 npm install util 。
执行完后删除了一下 dist 文件,再次重新编译可以了。
估计是我之前一直没有删除第一次生成的 dist 文件。

兄弟,打扰了,多谢

6年前 评论
liyu001989

确实有这个问题,不确定是否是某个依赖包版本的问题

教程已更新

6年前 评论
你看我吊吗啊

我的也突然报错了。。直接clone下来的
file

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!