Python 如何在ARM Linux上编译/安装VScode?

Python 如何在ARM Linux上编译/安装VScode?,python,node.js,compilation,visual-studio-code,armv7,Python,Node.js,Compilation,Visual Studio Code,Armv7,我正试图从git repo编译VScode 1.2分支。该平台是Ubuntu trusty运行在crouton的Chomebook上。CPU是英伟达TeGRA K1,32位ARMV7.p> 为什么不能在ARM上编译?看起来它主要是用Node.JS和Python编写的,我在ARM上看到了这两个版本,它们都与CPU无关 ================================= philo@localhost ~/v/scripts> tail -15 npm-debug.log 6

我正试图从git repo编译VScode 1.2分支。该平台是Ubuntu trusty运行在crouton的Chomebook上。CPU是英伟达TeGRA K1,32位ARMV7.p> 为什么不能在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
philo@localhost~/vscode-release-1.2>/scripts/code.sh
TypeError:对象函数Object(){[本机代码]}没有方法“assign”
在Object.create(/home/philo/vscode-release-1.2/node_modules/gulp tsb/lib/index.js:28:16)
在createCompile(/home/philo/vscode-release-1.2/gulpfile.js:47:15)
在compileTask(/home/philo/vscode-release-1.2/gulpfile.js:80:16)
反对。(/home/philo/vscode-release-1.2/gulpfile.js:106:47)
在模块处编译(Module.js:456:26)
在Object.Module.\u extensions..js(Module.js:474:10)
在Module.load(Module.js:356:32)
在Function.Module.\u加载(Module.js:312:12)
at Module.require(Module.js:364:17)
根据需要(模块js:380:17)
TypeError:对象函数Object(){[本机代码]}没有方法“assign”
在Object.create(/home/philo/vscode-release-1.2/node_modules/gulp tsb/lib/index.js:28:16)
在createCompile(/home/philo/vscode-release-1.2/gulpfile.js:47:15)
在compileTask(/home/philo/vscode-release-1.2/gulpfile.js:80:16)
反对。(/home/philo/vscode-release-1.2/gulpfile.js:106:47)
在模块处编译(Module.js:456:26)
在Object.Module.\u extensions..js(Module.js:474:10)
在Module.load(Module.js:356:32)
在Function.Module.\u加载(Module.js:312:12)
at Module.require(Module.js:364:17)
根据需要(模块js:380:17)
./scripts/code.sh:line 32:/home/philo/vscode-release-1.2/。build/electron/electron:没有这样的文件或目录

在CentOS 6(x64)上也有同样的问题:

它将此OSX特定模块视为非可选依赖项。我所看到的唯一一件事是,依赖关系在npm shrinkwrap.json中被展平。不确定这是否是一个bug


由于我不是为OS X编译,因此从npm shrinkwrap.json中删除fsevent项允许我继续。在内部,如果不存在fsevent,则它似乎会退回到文件轮询。

在CentOS 6(x64)上也存在同样的问题,包括:

它将此OSX特定模块视为非可选依赖项。我所看到的唯一一件事是,依赖关系在npm shrinkwrap.json中被展平。不确定这是否是一个bug


由于我不是为OS X编译,因此从npm shrinkwrap.json中删除fsevent项允许我继续。在内部,如果fsevent不存在,它似乎会依赖于文件轮询。

您是否正在尝试安装OS X版本(
有效OS:darwin
)?有效的体系结构是
any
,因此
arm
应该不是问题。您看到了吗?您使用的是哪个版本的节点?运行
node-v
以输出节点的版本。philo@localhost~>nodejs-v0.10.25您是否正在尝试安装OS X版本(
Valid OS:darwin
)?有效的体系结构是
any
,因此
arm
应该不是问题。您看到了吗?您使用的是哪个版本的节点?运行
node-v
以输出节点的版本。philo@localhost~>nodejs-v0.10.25谢谢你的帮助。我仍然需要
ln-s/usr/bin/nodejs/usr/bin/node
。因为gyp正在调用node,而不是nodejs。我不知道该在哪里修复它,但链接cludge成功了。谢谢你的帮助。我仍然需要
ln-s/usr/bin/nodejs/usr/bin/node
。因为gyp正在调用node,而不是nodejs。我不知道该在哪里修复它,但链接cludge成功了。
./scripts/npm.sh install --arch=x64