首页 > 解决方案 > 运行应用程序时面临 Gulp 问题

问题描述

我正在尝试运行 gulp 附带的一个应用程序。运行“npm run gulp”此命令
后出现以下错误。

> hcm-modern@1.1.0 gulp F:\Users\GIT\HCM_Backend\hcm-modern-data-layer

吞咽构建

[02:25:01] Using gulpfile F:\Users\GIT\HCM_Backend\hcm-modern-data-layer\gulpfile.js
[02:25:01] Starting 'clean'...
Deleted typescript build
[02:25:01] Finished 'clean' after 60 ms
[02:25:01] Starting 'compile'...
[02:25:12] 'compile' errored after 11 s
[02:25:12] Error: Command failed: "F:/Users/GIT/HCM_Backend/hcm-modern-data-layer/node_modules/.bin/tsc"
at checkExecSyncError (child_process.js:760:11)
at Object.execSync (child_process.js:833:15)
at Gulp.<anonymous> (F:\Users\GIT\HCM_Backend\hcm-modern-data-layer\gulpfile.js:45:16)
at module.exports (F:\Users\GIT\HCM_Backend\hcm-modern-data-layer\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (F:\Users\GIT\HCM_Backend\hcm-modern-data-layer\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (F:\Users\GIT\HCM_Backend\hcm-modern-data-layer\node_modules\orchestrator\index.js:214:10)
at F:\Users\GIT\HCM_Backend\hcm-modern-data-layer\node_modules\orchestrator\index.js:279:18
at finish (F:\Users\GIT\HCM_Backend\hcm-modern-data-layer\node_modules\orchestrator\lib\runTask.js:21:8)
at eos.error (F:\Users\GIT\HCM_Backend\hcm-modern-data-layer\node_modules\orchestrator\lib\runTask.js:43:4)

npm 错误!代码 ELIFECYCLE npm 错误!errno 1 npm 错误!hcm-modern@1.1.0 gulp:gulp build npm 错误!退出状态 1 npm ERR!enter code here npm 错误!在 hcm-modern@1.1.0 gulp 脚本中失败。npm 错误!这可能不是 npm 的问题。上面可能有额外的日志输出。npm 错误!可以在以下位置找到此运行的完整日志:npm ERR!C:\Users\503268772\AppData\Roaming\npm-cache_logs\2021-09-21T06_25_12_502Z-debug.log

标签: node.js

解决方案


推荐阅读