我正在尝试从git repo编译VScode 1.2分支。该平台是Ubuntu可靠的在Chomebook上以crouton运行。 CPU是Nvidia Tegra K1,32位ARMv7。
为什么不能在ARM上编译?它看起来主要是在Node.JS和Python中编写的,我在ARM上都使用它们,这两者都是CPU不可知的。
=================================
philo@localhost ~/v/scripts> tail -15 npm-debug.log
6702 info installOne typechecker@2.0.8
6703 info installOne fsevents@0.3.8
6704 error notsup Unsupported
6704 error notsup Not compatible with your operating system or architecture: fsevents@0.3.8
6704 error notsup Valid OS: darwin
6704 error notsup Valid Arch: any
6704 error notsup Actual OS: linux
6704 error notsup Actual Arch: arm
6705 error System Linux 3.10.18
6706 error command "/usr/bin/nodejs" "/usr/bin/npm" "install"
6707 error cwd /home/philo/vscode/scripts
6708 error node -v v0.10.25
6709 error npm -v 1.3.10
6710 error code EBADPLATFORM
6711 verbose exit [ 1, true ]
我根据以下建议编辑了 fsevent 。我还必须ln -s /usr/bin/nodejs /usr/bin/node
但是,我仍然没有得到有效的构建:
npm WARN cannot run in wd code-oss-dev@1.2.1 node build/npm/postinstall.js (wd=/home/philo/vscode-release-1.2)
当我尝试运行它时:
philo@localhost ~/vscode-release-1.2> ./scripts/code.sh
TypeError: Object function Object() { [native code] } has no method 'assign'
at Object.create (/home/philo/vscode-release-1.2/node_modules/gulp-tsb/lib/index.js:28:16)
at createCompile (/home/philo/vscode-release-1.2/gulpfile.js:47:15)
at compileTask (/home/philo/vscode-release-1.2/gulpfile.js:80:16)
at Object.<anonymous> (/home/philo/vscode-release-1.2/gulpfile.js:106:47)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
TypeError: Object function Object() { [native code] } has no method 'assign'
at Object.create (/home/philo/vscode-release-1.2/node_modules/gulp-tsb/lib/index.js:28:16)
at createCompile (/home/philo/vscode-release-1.2/gulpfile.js:47:15)
at compileTask (/home/philo/vscode-release-1.2/gulpfile.js:80:16)
at Object.<anonymous> (/home/philo/vscode-release-1.2/gulpfile.js:106:47)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
./scripts/code.sh: line 32: /home/philo/vscode-release-1.2/.build/electron/electron: No such file or directory
答案 0 :(得分:0)
在CentOS 6(x64)上遇到同样的问题:
./scripts/npm.sh install --arch=x64
它将此OS X特定模块视为非可选依赖项。我唯一看到的是依赖关系在{strong> npm-shrinkwrap.json 的2016-04-19 commit中被展平。不确定这是不是一个错误。
由于我没有为OS X编译,因此从 npm-shrinkwrap.json 中删除 fsevent 条目允许我继续。在内部,如果 fsevent 不存在,它似乎会回退到文件轮询。