vscode中,运行vue项目,报错如下,大概是什么原因啊,再别的电脑运行正常?
以下为异常日志
PS C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app> npm run serve> gwms-app@0.1.0 serve
> npm run dev:h5
> gwms-app@0.1.0 dev:h5
> cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve
请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
INFO Starting development server...
Starting type checking service...
Using 1 worker with 2048MB memory limit
uni-app 有新版本发布,请执行 `npx @dcloudio/uvm` 更新,更新日志详见:https://download1.dcloud.net.cn/hbuilderx/changelog/3.8.7.20230703.html
(node:11272) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\webpack\lib\NormalModule.js:471:10)
at C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\webpack\lib\NormalModule.js:503:5
at C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\webpack\lib\NormalModule.js:358:12
at C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at iterateNormalLoaders (C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
at C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\loader-runner\lib\LoaderRunner.js:236:3
at runSyncOrAsync (C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
at iterateNormalLoaders (C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
at Array.<anonymous> (C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at C:\Users\issuser\Desktop\suiwei\code\wms\hgwms-factory-app\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
如下为其他电脑正常日志
PS D:\haier\wms\hgwms-factory-app> npm run serve> gwms-app@0.1.0 serve
> npm run dev:h5
> gwms-app@0.1.0 dev:h5
> cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve
请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
INFO Starting development server...
Starting type checking service...
Using 1 worker with 2048MB memory limit
(node:9148) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
D:\haier\wms\hgwms-factory-app\src\plugins\wyb-table {
root: 'D:\\haier\\wms\\hgwms-factory-app',
path: [],
skipDuplicates: true,
resolve: [Function: resolve],
load: [Function (anonymous)],
plugins: [],
addModulesDirectories: []
}
D:\haier\wms\hgwms-factory-app\src\plugins\wyb-table {
root: 'D:\\haier\\wms\\hgwms-factory-app',
path: [],
skipDuplicates: true,
resolve: [Function: resolve],
load: [Function (anonymous)],
plugins: [],
addModulesDirectories: []
}
D:\haier\wms\hgwms-factory-app\node_modules\uview-ui\components\u-icon {
root: 'D:\\haier\\wms\\hgwms-factory-app',
path: [],
skipDuplicates: true,
resolve: [Function: resolve],
load: [Function (anonymous)],
plugins: [],
addModulesDirectories: []
}
D:\haier\wms\hgwms-factory-app\src\components\wyb-pagination {
root: 'D:\\haier\\wms\\hgwms-factory-app',
path: [],
skipDuplicates: true,
DONE Compiled successfully in 92120ms 15:02:39
No type errors found
Version: typescript 3.9.7
Time: 21322ms
App running at:
- Local: http://localhost:8080/nwp/
- Network: http://172.20.10.9:8080/nwp/
回答:
执行npx @dcloudio/uvm@latest alpha
uniapp官方社区有同样的问题:
https://ask.dcloud.net.cn/question/146299
https://ask.dcloud.net.cn/question/147646
以上是 vscode中,运行vue项目,报错如下,大概是什么原因啊,再别的电脑运行正常? 的全部内容, 来源链接: utcz.com/p/934550.html