Tencent / wepy

小程序组件化开发框架
https://wepyjs.gitee.io/wepy-docs/
Other
22.51k stars 3.05k forks source link

wepy-cli安装失败 #2016

Open firekeeper76 opened 5 years ago

firekeeper76 commented 5 years ago

系统:windows10 64位 bug表现: wepy-cli 30个依赖,安装到第29个就自动结束,wepy命令不可用 已做过的尝试:更换node版本,没用 安装命令如下:

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

WARN node unsupported "node@v9.8.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
[23/30] validate-npm-package-name@^3.0.0 installed at node_modules\_validate-npm-package-name@3.0.0@validate-npm-package-name
[24/30] handlebars@^4.0.11 installed at node_modules\_handlebars@4.0.12@handlebars
[25/30] async@^2.6.0 installed at node_modules\_async@2.6.1@async
[26/30] request@^2.67.0 installed at node_modules\_request@2.88.0@request
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"}
[27/30] update-notifier@^1.0.2 installed at node_modules\_update-notifier@1.0.3@update-notifier
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

PS C:\Users\11430\AppData\Roaming\npm\etc> wepy -v
wepy : 无法将“wepy”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径
,请确保路径正确,然后再试一次。
tinybright commented 5 years ago

用1.6.0 。 1.7.0 被不知道谁搞坏了

firekeeper76 commented 5 years ago

用1.6.0 。 1.7.0 被不知道谁搞坏了

谢了老哥,1.6.0装上去了

GeeFib commented 5 years ago

遇到同样的问题,v1.7.3请求修复