node.js - 运行应用程序时面临 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
解决方案
推荐阅读
- mysql - Django 是否自动将 idexing 应用于 pk 以进行快速查找?
- html - Firefox 90 会破坏“对象”SVG 的显示?
- memory - 有可能像这样在 Lua 中死锁内存吗?
- flutter - 为什么在这里触发空值时使用的空检查运算符?
- spring - Spring Boot:如何制作小 jar 包并从外部文件夹共享依赖项
- plyr - Plyr:带有外部按钮的多个视频
- tor - 如何删除 Tor 浏览器中的警告“版本 2 Onion Sites will be deprecated soon”
- python - CDAP 的间歇性服务暂停和 Python 集成
- python - Python中模块的不同日志级别
- wordpress - 我们可以使用 divi builder 编辑 WP-bakery 模板吗?