[英]xplat You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable
Im trying to generate a new app using xplat 我正在尝试使用xplat生成新应用
I am using node version 11.15 我正在使用节点版本11.15
I try to do the following 我尝试执行以下操作
npx create-xplat-workspace myworkspace
I generates everything til it prompts 我生成直到提示的所有内容
? Would you like to generate xplat supporting architecture now? You can also generate later with: nx generate @nstudio/xplat:init not right now [just add xplat tooling] electron [generate xplat Electron support] ❯ ionic [generate xplat Ionic support] nativescript [generate xplat NativeScript support] web [generate xplat Web support]
I select ionic and I get the following error 选择离子型,出现以下错误
You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.
Here is the entirety 这是全部
`npm install -D @nstudio/xplat
> @nstudio/xplat@8.0.5 postinstall /Users/ag/nxprojects/myworkspace/node_modules/@nstudio/xplat
> node src/utils/postinstall.js
Patch for nx format have been applied
> XPLAT Note:
xplat is updating "/Users/ag/nxprojects/myworkspace/.prettierignore" with a few important extra rules. You may double-check the contents afterwards to ensure they meet your satisfaction.
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
+ @nstudio/xplat@8.0.5
added 11 packages from 66 contributors and audited 898038 packages in 30.891s
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
npx nx g @nstudio/xplat:init
> NX NOTE Nx didn't recognize the command, forwarding on to the Angular CLI.
? Would you like to generate xplat supporting architecture now? You can also generate later with: nx generate @nstudio/xplat:init ionic [generate xplat Ionic support]
? Do you prefer to use a frontend framework? angular [ensure platforms are added with Angular]
? Please input a 2-3 character prefix to use with xplat generators: ci
You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.
Command failed: npx nx g @nstudio/xplat:init`
如果有同样的问题,注意到它在nx g @nstudio/xplat:init
上失败,但是如果您进入工作区并运行ng g @nstudio/xplat:init
,则它会完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.