我在Linux上的grunt构建有问题。完全相同的代码在Windows中可以正常运行,但是在Linux中,它会给我以下错误。有人可以帮忙吗? 文件模块位于上述位置,并且我将文件权限更改为777,所以没有访问权限问题。
[4mRunning "clean:dist" (clean) task[24m
[32m>> [39m0 paths cleaned.
[4mRunning "clean:cache" (clean) task[24m
[32m>> [39m0 paths cleaned.
[4mRunning "copy:externalLibEvry" (copy) task[24m
Copied 1 file
[4mRunning "concurrent:buildSource" (concurrent) task[24m
[4mRunning "ts:buildonce" (ts) task[24m
[32mUpdated reference file (10ms).[39m
[33mCompiling...[39m
[36mFast compile will not work when --out is specified. Ignoring fast
compilation[39m
Using the custom compiler : ./BuildTools/TypeScript/bin/tsc.js
module.js:540
throw err;
^
Error: Cannot find module
'/root/.jenkins/workspace/XXXXX/XXXXX/BuildTools/TypeScript/bin/tsc.js'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
[31m >> [39m [33m错误:tsc返回码:1 [39m [33m警告:任务“ ts:buildonce”失败。请使用--force继续。[39m
[31mA因警告而中止。[39m [33m警告:使用--force继续。[39m
[31mAborted due to warnings.[39m
Build step 'Execute shell' marked build as failure
Finished: FAILURE