首先,我想知道是否python script\bootstrap.py -v
工作了你。
看样输出,我的机器上,(用git bash)的
[email protected] MINGW64 /e/Projects/electron (master)
$ python script/bootstrap.py -v
Submodule 'vendor/boto' (https://github.com/boto/boto.git) registered for path 'vendor/boto'
Submodule 'vendor/breakpad' (https://github.com/electron/chromium-breakpad.git) registered for path 'vendor/breakpad'
Submodule 'vendor/brightray' (https://github.com/electron/brightray.git) registered for path 'vendor/brightray'
Submodule 'vendor/crashpad' (https://github.com/electron/crashpad.git) registered for path 'vendor/crashpad'
Submodule 'vendor/depot_tools' (https://chromium.googlesource.com/chromium/tools/depot_tools.git) registered for path 'vendor/depot_tools'
Submodule 'vendor/native_mate' (https://github.com/zcbenz/native-mate.git) registered for path 'vendor/native_mate'
Submodule 'vendor/node' (https://github.com/electron/node.git) registered for path 'vendor/node'
Submodule 'vendor/requests' (https://github.com/kennethreitz/requests) registered for path 'vendor/requests'
Cloning into 'vendor/boto'...
remote: Counting objects: 42186, done.
<more lines cloning different dependencies.>
.
.
.
其次, 我建议在路径而不是 '\' 使用 '/'。这在Windows cmd中运行良好。但是,并不是如何处理不同脚本的路径。 '/'总是有效。
运行这两个命令,python script\bootstrap.py -v
为python script/bootstrap.py -v
,并python script\build.py
为python script/build.py
此文件不存在,或者您没有访问权限。 – mpampana
感谢您的评论。该文件存在于脚本/ bootstrap.py中,但它只是查看scriptbootstrap.py – John