使用Spartacus中的原理图命令
我正在尝试使用示意图命令“ NPX NG @spartacus/示意图:add-pwa”(由于版本与其他项目发生冲突,我不使用全局npm repo或Angular安装)。
我将获得以下输出:
The specified command ("@spartacus/schematics:add-pwa") is invalid. For a list of available options,
run "ng help".
Did you mean "analytics"?
ng cli命令工作正常,还添加 @spartacus/sthematics工作正常(npx ng add @spartacus/spartacus/schematics @最新
),yarn build working forking forking forking(npx yarn build构建
)。
如果我运行npx ng add @spartacus/schematics -ssr
,这也可以正常工作,请再次提示我的功能,并将SSR添加到项目中。
我是否必须采取其他任何措施才能运行文档中提到的其他spartacus示意图命令( https://sap.github.io/spartacus-docs/schematics/#additional-commands-for-cormands-for-core-libraries-and-libraries-and-libraries-and-features )?
谢谢你! 克里斯蒂·C(Cristi C.)
I am trying to use the schematics command "npx ng @spartacus/schematics:add-pwa" (I am not using a global npm repo or angular installation, due to version conflicts with other projects).
I get the following output:
The specified command ("@spartacus/schematics:add-pwa") is invalid. For a list of available options,
run "ng help".
Did you mean "analytics"?
ng cli commands work fine, also adding @spartacus/schematics worked fine (npx ng add @spartacus/schematics@latest
), yarn build works fine (npx yarn build
).
If I run npx ng add @spartacus/schematics --ssr
, this also works fine, prompts me again for the features I want and adds SSR to the project.
Do I have to do anything else to be able to run the additional Spartacus Schematics commands as they are mentioned in the documentation (https://sap.github.io/spartacus-docs/schematics/#additional-commands-for-core-libraries-and-features)?
Thank you!
Cristi C.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试运行
npx ng add @spartacus/示意图-PWA
?Did you try to run
npx ng add @spartacus/schematics --pwa
?我找到了我问题的答案。这是我身边的错误。我试图打电话:
但是正确的电话是:
以更多的关注阅读文档有帮助...
I found the answer to my question. It was a mistake on my side. I was trying to call:
but the correct call is:
Reading the documentation with more attention helps...