ERROR command “uni-serve$1$1“ does not exist.
Debugger attached.
> uni-app@0.1.0 dev:h5
> cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve
Debugger attached.
Debugger attached.
请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
ERROR command "uni-serve$1$1" does not exist.
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
在vscode中运行uni-app项目报上述错误,
运行的时候,是在 package.json 文件点击调试直接运行的,然后
换种运行方式
npx vue-cli-service uni-serve
如果还是运行失败
安装
npm install -g uni-cli
npm audit fix --force
再次运行
另外,确保电脑已经安装配置好了node等环境。