[43653/73294] ACTION //third_party/typescript:build_typescript(//build/toolchain/ohos:ohos_clang_arm)
FAILED: obj/third_party/typescript/build_typescript.stamp
/usr/bin/env ../../third_party/typescript/compile_typescript.py /home/lp-machine/openharmony/OpenHarmony-v4.1-Release/OpenHarmony/third_party/typescript/
Traceback (most recent call last):
File "../../third_party/typescript/compile_typescript.py", line 43, in <module>
main(sys.argv[1:])
File "../../third_party/typescript/compile_typescript.py", line 39, in main
run_pack(source_path)
File "../../third_party/typescript/compile_typescript.py", line 34, in run_pack
run_cmd(["npm", "pack"], execution_path)
File "../../third_party/typescript/compile_typescript.py", line 23, in run_cmd
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'npm'
哪位大佬能帮忙分析一下原因,谢谢!!!
### 【运行环境】
硬件:rk3568
ROM版本:openharmony 4.1 release
DevEvoStudio版本:DevEco Studio 4 release
SDK版本: API 11
[/md]作者: hyacinth养花人 时间: 5 天前
npm装了么,重装下试试?