wepy icon indicating copy to clipboard operation
wepy copied to clipboard

throw `Unexpected type: ${k} expect a ${defaultItem.type.name}`;4

Open YangJie6020 opened this issue 7 years ago • 12 comments

Windows10电脑上跑官方例子,出现这个问题,不知道什么原因,问题如下:

@wepy\cli\core\parseOptions.js:98 throw Unexpected type: ${k} expect a ${defaultItem.type.name};4

npm 6.4.1 node 10.15.3

 ```

YangJie6020 avatar Jul 06 '19 14:07 YangJie6020

I have the same problem, have you solved it?

abCreate01 avatar Jul 08 '19 13:07 abCreate01

I have the same problem, have you solved it?

not yet , I have no idea to solve this problem. maybe I can fix it this day. and I use Windows not Mac :-)

YangJie6020 avatar Jul 09 '19 00:07 YangJie6020

npm install [email protected] -g you can try

abCreate01 avatar Jul 09 '19 07:07 abCreate01

Can you please check your cli version. Also, try to upgrade cli to the newest version.

npm i -g @wepy/[email protected]

Gcaufy avatar Jul 09 '19 09:07 Gcaufy

npm install [email protected] -g you can try

thanks, the version moves to fast !!!

YangJie6020 avatar Jul 11 '19 13:07 YangJie6020

Can you please check your cli version. Also, try to upgrade cli to the newest version.

npm i -g @wepy/[email protected]

that doesn't work,I reduce the version to 1.x.x.

YangJie6020 avatar Jul 11 '19 13:07 YangJie6020

Now I also encounter this problem, how to solve this problem

lengyunfei avatar Jul 29 '19 09:07 lengyunfei

npm install @wepy/cli@next

Gcaufy avatar Jul 30 '19 07:07 Gcaufy

mac: sudo npm install [email protected] -g

windows npm install [email protected] -g

Jialufeng avatar Aug 12 '19 03:08 Jialufeng

有没有1.7迁移到2.0的教程?

keyiis avatar Sep 29 '19 02:09 keyiis

same error, fixed by reinstall @1.x.x

youxingz avatar Nov 05 '19 08:11 youxingz

同遇到,通过以下命令解决了 npm install wepy-cli@^1.7.2

swen624 avatar Nov 15 '19 12:11 swen624