Tencent / kbone

一个致力于微信小程序和 Web 端同构的解决方案
Other
4.78k stars 454 forks source link

'rimraf' 不是内部或外部命令,也不是可运行的程序 #470

Closed SheepYang1993 closed 11 months ago

SheepYang1993 commented 11 months ago
npm run start
Debugger attached.

> vue-kbone@0.0.1 start F:\SheepYang\Project\kbone-template-vue
> npm run mp

Debugger attached.

> vue-kbone@0.0.1 mp F:\SheepYang\Project\kbone-template-vue
> rimraf dist/mp/common && cross-env NODE_ENV=development webpack --config build/webpack.mp.config.js --progress --hide-modules
'rimraf' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-kbone@0.0.1 mp: `rimraf dist/mp/common && cross-env NODE_ENV=development webpack --config build/webpack.mp.config.js --progress --hide-modules`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-kbone@0.0.1 mp script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2023-09-28T08_58_06_930Z-debug.log
Waiting for the debugger to disconnect...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-kbone@0.0.1 start: `npm run mp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-kbone@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2023-09-28T08_58_07_080Z-debug.log
Waiting for the debugger to disconnect...
JuneAndGreen commented 11 months ago

https://github.com/wechat-miniprogram/kbone-template-vue/blob/master/package.json#L58

image

npm 安装一下这个包。