本地安装 wepy 失败

虚拟机安装安装wepy成功了,我的windows系统,由于 wepy 监听不到文件变化,看讨论区后,要在本地安装wepy。

> cnpm i wepy-cli -g
Downloading wepy-cli to D:\work\nodejs\node_global\node_modules\wepy-cli_tmp
Copying D:\work\nodejs\node_global\node_modules\wepy-cli_tmp\_wepy-cli@1.7.3@wepy-cli to D:\work\nodejs\node_global\node_modules\wepy-cli
Installing wepy-cli's dependencies to D:\work\nodejs\node_global\node_modules\wepy-cli/node_modules
[1/30] compare-versions@^3.0.0 installed at node_modules\_compare-versions@3.4.0@compare-versions
[2/30] commander@^2.9.0 installed at node_modules\_commander@2.19.0@commander
[3/30] hash-sum@^1.0.2 installed at node_modules\_hash-sum@1.0.2@hash-sum
[4/30] ignore@^3.2.0 installed at node_modules\_ignore@3.3.10@ignore
[5/30] colors@^1.1.2 installed at node_modules\_colors@1.3.3@colors
[6/30] js-base64@^2.1.9 installed at node_modules\_js-base64@2.5.0@js-base64
[7/30] chalk@^2.3.0 installed at node_modules\_chalk@2.4.1@chalk
[8/30] consolidate@^0.15.0 installed at node_modules\_consolidate@0.15.1@consolidate
[9/30] mkdirp@^0.5.1 installed at node_modules\_mkdirp@0.5.1@mkdirp
[10/30] ncp@^2.0.0 installed at node_modules\_ncp@2.0.0@ncp
[11/30] download@^6.2.5 installed at node_modules\_download@6.2.5@download
[12/30] download-git-repo@^1.0.2 installed at node_modules\_download-git-repo@1.1.0@download-git-repo
[13/30] multimatch@^2.1.0 installed at node_modules\_multimatch@2.1.0@multimatch
[14/30] ora@^1.3.0 installed at node_modules\_ora@1.4.0@ora
[15/30] postcss-selector-parser@^2.2.3 installed at node_modules\_postcss-selector-parser@2.2.3@postcss-selector-parser
[16/30] tildify@^1.2.0 installed at node_modules\_tildify@1.2.0@tildify
[17/30] read-metadata@^1.0.0 installed at node_modules\_read-metadata@1.0.0@read-metadata
[18/30] time-ago@^0.2.1 installed at node_modules\_time-ago@0.2.1@time-ago
[19/30] user-home@^2.0.0 installed at node_modules\_user-home@2.0.0@user-home
[20/30] postcss@^5.2.16 installed at node_modules\_postcss@5.2.18@postcss
[21/30] metalsmith@^2.3.0 installed at node_modules\_metalsmith@2.3.0@metalsmith
[22/30] xmldom@^0.1.27 installed at node_modules\_xmldom@0.1.27@xmldom
[23/30] validate-npm-package-name@^3.0.0 installed at node_modules\_validate-npm-package-name@3.0.0@validate-npm-package-name

WARN node unsupported "node@v10.14.2" is incompatible with update-notifier@1.0.3 › latest-version@2.0.0 › package-json@2.4.0 › got@^5.0.0, expected node@>=0.10.0 <7
[24/30] handlebars@^4.0.11 installed at node_modules\_handlebars@4.0.12@handlebars
[25/30] update-notifier@^1.0.2 installed at node_modules\_update-notifier@1.0.3@update-notifier
[26/30] request@^2.67.0 installed at node_modules\_request@2.88.0@request
[27/30] async@^2.6.0 installed at node_modules\_async@2.6.1@async
fsevents@1.2.4 download from binary mirror: {"module_name":"fse","module_path":"./lib/binding/{configuration}/{node_abi}-{platform}-{arch}/","remote_path":"./v{version}/","package_name":"{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz","host":"https://cdn.npm.taobao.org/dist/fsevents"}
platform unsupported chokidar@1.7.0 › fsevents@^1.0.0 Package require os(darwin) not compatible with your platform(win32)
[fsevents@^1.0.0] optional install error: Package require os(darwin) not compatible with your platform(win32)
[28/30] chokidar@^1.6.1 installed at node_modules\_chokidar@1.7.0@chokidar
[29/30] inquirer@^5.0.1 installed at node_modules\_inquirer@5.2.0@inquirer

任务23的时候报错了,也并没有执行任务30

[23/30] validate-npm-package-name@^3.0.0 installed at node_modules\_validate-npm-package-name@3.0.0@validate-npm-package-name

WARN node unsupported "node@v10.14.2" is incompatible with update-notifier@1.0.3 › latest-version@2.0.0 › package-json@2.4.0 › got@^5.0.0, expected node@>=0.10.0 <7

社区和百度没有找到解决方案, 我把 node v10.12.0升级到了v10.14.2,还是这样的错误,我看别人视频安装 wepy 的时候行云流水

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 7
liyu001989

只是 warn ,并没有 error。感觉是你的进程被什么东西给中断了。还是先用 homesated 呗,只是多一步手动编译

5年前 评论
taodaykiu

@liyu001989 嗯,好的,等node下一版本再试试

5年前 评论

WARN node unsupported "node@v10.15.0" is incompatible with update-notifier@1.0.3 › latest-version@2.0.0 › package-json@2.4.0 › got@^5.0.0, expected node@>=0.10.0 <7

我有点气了 最新版的 怎么样也
'wepy' 不是内部或外部命令,也不是可运行的程序
或批处理文件

wepy.cmd压根找不到

5年前 评论

换成linux系统就好了

5年前 评论

@lyxxxh 建议使用官方的 npm 安装方式:npm install wepy-cli -g ,然后 wepy 的命令就可以使用了

5年前 评论
任飘渺

这里有一份初始化 wpy的源码 npm install 后使用
链接:https://pan.baidu.com/s/1pUpHWbPBw_pK_g2jL...
提取码:uur4

4年前 评论

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