1***@qq.com
1***@qq.com
  • 发布:2022-11-10 14:00
  • 更新:2022-11-10 14:00
  • 阅读:364

process.env.UNI_CLI_CONTEXT = require('@dcloudio/uni-cli-shared/lib/util').getCLIContext()

分类:uni-app

PS E:\newsss> npm run serve

objred@0.1.0 serve
npm run dev:h5

objred@0.1.0 dev:h5
cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve

E:\newsss\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\index.js:5
process.env.UNI_CLI_CONTEXT = require('@dcloudio/uni-cli-shared/lib/util').getCLIContext()
^

TypeError: require(...).getCLIContext is not a function
at Object.<anonymous> (E:\newsss\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\index.js:5:76)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at idToPlugin (E:\newsss\node_modules\@vue\cli-service\lib\Service.js:172:14)
at E:\newsss\node_modules\@vue\cli-service\lib\Service.js:211:20
at Array.map (<anonymous>)

有没有大佬帮助一下

2022-11-10 14:00 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复