wepy 初始化错误?

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

启动小程序后:
file
file

晨读秀
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 10
晨读秀

@Summer 大神求助

7年前 评论
liyu001989

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

7年前 评论
晨读秀

file@liyu001989

7年前 评论
晨读秀

默认关闭的

7年前 评论
晨读秀

file

7年前 评论
晨读秀

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"
   }
 }
7年前 评论
liyu001989

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

7年前 评论
晨读秀

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

兄弟,打扰了,多谢

7年前 评论
liyu001989

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

教程已更新

7年前 评论
你看我吊吗啊

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

6年前 评论

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