指令:.\cli.bat --auto E:\books --auto-port 9420
版本:
稳定版 Stable Build 更新日志
Windows 64 、
1.02.1907300报错:
Initializing...
Please ensure that the IDE has been properly installed
init error: { Error: ENOENT: no such file or directory, open 'C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\Default\.cli' at Object.openSync (fs.js:448:3) at Object.writeFileSync (fs.js:1210:35)
at C:\Users\Administrator\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\common\cli\index.js:157:31454
at processTicksAndRejections (internal/process/task_queues.js:86:5)
at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:56:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:880:11)
at internal/main/run_main_module.js:21:11
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'C:\\Users\\Administrator\\AppData\\Local\\微信开发者工具\\User Data\\Default\\.cli' }
您好,我现在运行命令 到这里会自动打开微信开发者工具
$ ./cli.bat --auto E:\\activity\\kesite\\cos-power-only-lease-wechat --auto-port 9420
- initialize
√ IDE server started successfully, listening on http://127.0.0.1:64623
[warn] DEPRECATED please upgrade to the following v2 command instead ( doc: https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html )
cli auto --project E:\activity\kesite\cos-power-only-lease-wechat --auto-port 9420
- open project with automation enabled
然后我在自己的项目下运行 jest index.spec.js 就报错
$ jest index.spec.js
C:\Users\Wangaidi\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found
可以帮忙看看是怎么回事吗
你好,请你看一下 你的这个目录下的文件存不存在:C:\\Users\\Administrator\\AppData\\Local\\微信开发者工具\\User Data\\Default\\.cli
$ ./cli.bat --auto E:\\activity\\kesite\\cos-power-only-lease-wechat --auto-port 9420
Initializing...
idePortFile: C:\Users\Wangaidi\AppData\Local\微信web开发者工具\User Data\Default\.ide
starting ide...
Runtime error: Error
Error: spawn ./微信web开发者工具.exe ENOENT
辛苦帮我看一下 谢谢了