我正在尝试V8JS
在我的本地计算机(Windows 操作系统)上安装c:xampp\v
目录。我在以下命令中使用过Git
:
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ export PATH=`pwd`/depot_tools:"$PATH"
$ gclient
最后一个命令的结果(运行了几次):
Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.ap
pspot.com/client?platform=windows-amd64&version=git_revision:db7a486094873e3944
b8e27ab5b23a3ae3c401e7...
Failed to download the file, check your network connection
At C:\xampp\v\depot_tools\cipd.ps1:116 char:10
+ throw <<<< "Failed to download the file, check your network connection"
+ CategoryInfo : OperationStopped: (Failed to downl...work connec
tion:String) [], RuntimeException
+ FullyQualifiedErrorId : Failed to download the file, check your network
connection
Failed to bootstrap or update CIPD client
然后我尝试了:
$ git clone https://github.com/certik/python-2.7.git
$ fetch v8
下面出现了:
/c/xampp/v/depot_tools/fetch: line 8: exec: python: not found
出了什么问题,如何解决?
编辑:我已经尝试过官方 Python,但出现以下错误:
v8 (ERROR)
----------------------------------------
[0:00:00] Started.
----------------------------------------
Traceback (most recent call last):
File "C:\xampp\v\depot_tools\metrics.py", line 267, in print_notice_and_exit
yield
File "C:\xampp\v\depot_tools\gclient.py", line 3157, in <module>
sys.exit(main(sys.argv[1:]))
File "C:\xampp\v\depot_tools\gclient.py", line 3143, in main
return dispatcher.execute(OptionParser(), argv)
File "C:\xampp\v\depot_tools\subcommand.py", line 252, in execute
return command(parser, args[1:])
File "C:\xampp\v\depot_tools\gclient.py", line 2700, in CMDsync
ret = client.RunOnDeps('update', args)
File "C:\xampp\v\depot_tools\gclient.py", line 1738, in RunOnDeps
patch_refs=patch_refs, target_branches=target_branches)
File "C:\xampp\v\depot_tools\gclient_utils.py", line 911, in flush
reraise(e[0], e[1], e[2])
File "C:\xampp\v\depot_tools\gclient_utils.py", line 988, in run
self.item.run(*self.args, **self.kwargs)
File "C:\xampp\v\depot_tools\gclient.py", line 915, in run
file_list)
File "C:\xampp\v\depot_tools\gclient_scm.py", line 133, in RunCommand
return getattr(self, command)(options, args, file_list)
File "C:\xampp\v\depot_tools\gclient_scm.py", line 511, in update
mirror = self._GetMirror(url, options, revision_ref)
File "C:\xampp\v\depot_tools\gclient_scm.py", line 951, in _GetMirror
if not self.cache_dir:
File "C:\xampp\v\depot_tools\gclient_scm.py", line 219, in cache_dir
return git_cache.Mirror.GetCachePath()
File "C:\xampp\v\depot_tools\git_cache.py", line 301, in GetCachePath
['cache.cachepath']).strip()
File "C:\xampp\v\python\lib\subprocess.py", line 216, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "C:\xampp\v\python\lib\subprocess.py", line 394, in __init__
errread, errwrite)
File "C:\xampp\v\python\lib\subprocess.py", line 644, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Running: 'C:\xampp\v\python\python.exe' 'C:\xampp\v\depot_tools\gclient.py' root
Running: 'C:\xampp\v\python\python.exe' 'C:\xampp\v\depot_tools\gclient.py' config --spec 'solutions = [
{
"url": "https://chromium.googlesource.com/v8/v8.git",
"managed": False,
"name": "v8",
"deps_file": "DEPS",
"custom_deps": {},
},
]
'
Running: 'C:\xampp\v\python\python.exe' 'C:\xampp\v\depot_tools\gclient.py' sync --with_branch_heads
Subprocess failed with return code 1.