alibaba / weex

A framework for building Mobile cross-platform UI
https://weexapp.com/
Apache License 2.0
18.28k stars 2.13k forks source link

error koa-serve-static@0.0.1: The engine "node" is incompatible with this module. Expected version "1.x.x". #2020

Closed aguegu closed 3 years ago

aguegu commented 7 years ago
screen shot 2016-12-26 at 15 56 21

是 node 7.3 还是 yarn 0.18.1,更新步子迈太大扯到蛋了么?

系统依赖着一块,能不能更具体一些?

exolution commented 7 years ago

我试了下 node 7.3(npm3.10.10)安装是可以成功的~ 建议用npm安装~

Jinjiang commented 7 years ago

@aguegu 问题是否已经解决?

aguegu commented 7 years ago

image

感觉并没有,淘宝源感觉也不是很稳定的感觉。有别的朋友帮忙验证么?

zxm9988 commented 7 years ago

我也出现这个问题

limichange commented 7 years ago

image 也出现了这个问题

limichange commented 7 years ago

似乎最新版的脚手架weex init project-name不管用yarn和npm安装都会出现问题。 希望你们能测试一下,谢谢。

$ weex init project-name
$ cd project-name
$ yarn
yarn install v0.18.1
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning serve > jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
warning serve > jade > transformers@2.1.0: Deprecated, use jstransformer
warning weex-devtool > koa-serve > koa-send > mz > native-or-bluebird@1.2.0: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
[2/4] 🚚  Fetching packages...
error koa-serve-static@0.0.1: The engine "node" is incompatible with this module. Expected version "1.x.x".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
JackPu commented 7 years ago

@exolution @Jinjiang 用yarn确实安装有问题,用 npm 安装 没有问题。 node : 6.0.0 npm : 3.8.6

JackPu commented 7 years ago

@limichange yarn的问题我们会及时排查的,建议你先使用npm安装

limichange commented 7 years ago

@JackPu THX.

cooliean commented 7 years ago

我也遇到这个报错了。没有办法安装 yarn global add weex-toolkit

limichange commented 7 years ago

@cooliean

$ yarn global add weex-toolkit@beta
fanyang89 commented 7 years ago

我也遇到了这个错误,用npm安装成功了。用的是npm i weex-toolkit@beta

PS E:\Repository\Workspace\Helloweex\awesome-project> yarn
yarn install v0.20.3
info No lockfile found.
[1/4] Resolving packages...
warning serve > jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
warning serve > jade > transformers@2.1.0: Deprecated, use jstransformer
warning weex-devtool > koa-serve > koa-send > mz > native-or-bluebird@1.2.0: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
[2/4] Fetching packages...
error koa-serve-static@0.0.1: The engine "node" is incompatible with this module. Expected version "1.x.x".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
allentong commented 7 years ago

I'm using yarn install --ignore-engines to use yarn to install for the time being.

mymmoonoa commented 7 years ago

真的是可以的, 时间过去这么久还没解决。

AmyXS commented 7 years ago

yarn install --ignore-engine 可以install 但是Playground app扫过QR code之后出来network error, 这是因为 ignore-engine吗 还是我需要做些别的东西?

AmyXS commented 7 years ago

也试过了 npm install -g weex-toolkit@beta 但是还出现之前的error, npm 5.3.0, yarn 0.24.6, nodev8.4.0

YorkShen commented 5 years ago

This PR/issue doesn't receive response since Weex migrated to Apache two years ago and this repository is no longer active yet.

Feel free to ask question in new repository and thanks for your contribution.

Hanks10100 commented 3 years ago

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.

Hanks10100 commented 3 years ago

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.