Weex development environment installation failed

error installing Times

$ yarn global add weex-toolkit
yarn global v1.2.1
[1/4] Resolving packages...
warning weex-toolkit > weex-builder > babel-preset-es2015@6.24.1: ?  Thanks f
or using Babel: we recommend using babel-preset-env now: please read babeljs.io/
env to update!
warning weex-toolkit > xtoolkit > dns > winston > request > node-uuid@1.4.8: Use
 uuid module instead
[2/4] Fetching packages...
error hawk@0.10.2: The engine "node" is incompatible with this module. Expected
version "0.8.x".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this c
ommand.

but initialize normally

$ weex -v
   v1.2.9
 - weexpack : v1.0.15
 - weex-builder : v0.3.14
 - weex-previewer : v1.4.6

$ weex create weex-test
? Project name (weex-test)
? Project name weex-test
? Project description (A weex project)
? Project description A weex project
? Project version (1.0.0)
? Project version 1.0.0
? Project author (xx)
? Project author xx
? Set up unit tests? (Y/n)
? Set up unit tests? Yes
? Should we run `npm install` for you after the project has been created? no

Success! Created weex-test at F:\weex\weex-test

when adding a platform

$ weex platform add android

  error: unknown option `--telemetry"

how to solve this problem?

Native environment

  • Win10 64
  • node 8.9.3
Mar.02,2021

I have also encountered this problem, and my solution is:

  1. install weexpack:cnpm install-g weexpack first
  2. then update weexpack to 1.0.18: weex update weexpack@1.0.18
  3. as prompted
  4. weex platform add ios succeeded!

weex platform add anroid-> android


I also encounter this problem. Official documents cannot be more simple, and there are fewer instructions. There are not so many holes


with yarn, but not with npm.

Menu