我正在尝试在LWC 开源中运行一个地狱世界应用程序,并且在“npx create-lwc-app my-app”之后,当我在目录中 cd 并运行“npm run watch”时,我收到以下错误。
E:\Development\LWC\workspace\dev>npm run watch
> dev@0.0.0 watch E:\Development\LWC\workspace\dev
> lwc-services watch
'lwc-services' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dev@0.0.0 watch: `lwc-services watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dev@0.0.0 watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ABC\AppData\Roaming\npm-cache\_logs\2019-12-24T16_31_47_970Z-debug.log
已尝试再次安装“npm install --global --production windows-build-tools”,尝试手动安装 npm i lwc-services -g 但它有一个错误 'rollup-plugin2.02 is dprecated update your dependency' 但是我不知道这是否是这里的问题,重新安装了 nmp 但仍然无法正常工作。