PS C:\Users\xzz\Desktop\xyzs-9\src> npx @dcloudio/uvm@latest
D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29
throw new Error('Invalid project: ' + projectPath)
^
Error: Invalid project: C:\Users\xzz\Desktop\xyzs-9\src
at info (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29:11)
at start (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:14:27)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
- 发布:2024-09-21 18:14
- 更新:2024-10-22 15:26
- 阅读:121
【报Bug】npx @dcloudio/uvm@latest 报错 throw new Error('Invalid project: ' + projectPath)
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window11
HBuilderX类型: 正式
HBuilderX版本号: 4.24
手机系统: Android
手机系统版本号: Android 14
手机厂商: OPPO
手机机型: 一加 Ace 2 Pro
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
PS C:\Users\xzz\Desktop\xyzs-9\src> npx @dcloudio/uvm@latest
D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29
throw new Error('Invalid project: ' + projectPath)
^
Error: Invalid project: C:\Users\xzz\Desktop\xyzs-9\src
at info (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29:11)
at start (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:14:27)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
PS C:\Users\xzz\Desktop\xyzs-9\src> npx @dcloudio/uvm@latest
D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29
throw new Error('Invalid project: ' + projectPath)
^
Error: Invalid project: C:\Users\xzz\Desktop\xyzs-9\src
at info (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29:11)
at start (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:14:27)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
预期结果:
PS C:\Users\xzz\Desktop\xyzs-9\src> npx @dcloudio/uvm@latest
D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29
throw new Error('Invalid project: ' + projectPath)
^
Error: Invalid project: C:\Users\xzz\Desktop\xyzs-9\src
at info (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29:11)
at start (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:14:27)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
PS C:\Users\xzz\Desktop\xyzs-9\src> npx @dcloudio/uvm@latest
D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29
throw new Error('Invalid project: ' + projectPath)
^
Error: Invalid project: C:\Users\xzz\Desktop\xyzs-9\src
at info (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29:11)
at start (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:14:27)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
实际结果:
PS C:\Users\xzz\Desktop\xyzs-9\src> npx @dcloudio/uvm@latest
D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29
throw new Error('Invalid project: ' + projectPath)
^
Error: Invalid project: C:\Users\xzz\Desktop\xyzs-9\src
at info (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29:11)
at start (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:14:27)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
PS C:\Users\xzz\Desktop\xyzs-9\src> npx @dcloudio/uvm@latest
D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29
throw new Error('Invalid project: ' + projectPath)
^
Error: Invalid project: C:\Users\xzz\Desktop\xyzs-9\src
at info (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\project.js:29:11)
at start (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:14:27)
at Object.<anonymous> (D:\nodejs\node_cache\_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.10.0
bug描述:
npx @dcloudio/uvm@latest更新依赖到指定版本报错,无法更新
1 个回复
5***@qq.com
请问下解决了吗= =