首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >节点--和谐:没有这样的文件或目录

节点--和谐:没有这样的文件或目录
EN

Stack Overflow用户
提问于 2016-03-01 14:25:35
回答 1查看 1.1K关注 0票数 1

规范:Ubuntu14.04LTS服务器- NodeJS 5.7.0 -NPM3.6.0

我正在使用启动命令:#!/usr/bin/env node --harmony运行一个定制的cli工具。在我的本地机器(也是5.7.0版本)上工作得很好,但是在我的服务器上我得到了:

代码语言:javascript
复制
/usr/bin/env: node --harmony: No such file or directory

我的问题是:如何将harmony 工具默认设置为true?

我试过跑步:

代码语言:javascript
复制
node --v8-options | grep -A1 harmony

的文章说它应该显示true,但是所有的harmony工具似乎都是禁用的。

代码语言:javascript
复制
root@server:/home/iskore# node --v8-options | grep -A1 harmony

--es_staging (enable all completed harmony features)
    type: bool  default: false
--harmony (enable all completed harmony features)
    type: bool  default: false
  --harmony_shipping (enable all shipped harmony fetaures)
    type: bool  default: false
  --harmony_modules (enable "harmony modules" (in progress))
    type: bool  default: false
  --harmony_regexps (enable "harmony regular expression extensions" (in progress))
    type: bool  default: false
  --harmony_proxies (enable "harmony proxies" (in progress))
    type: bool  default: false
  --harmony_sloppy_function (enable "harmony sloppy function block scoping" (in progress))
    type: bool  default: false
  --harmony_sloppy_let (enable "harmony let in sloppy mode" (in progress))
    type: bool  default: false
  --harmony_unicode_regexps (enable "harmony unicode regexps" (in progress))
    type: bool  default: false
  --harmony_reflect (enable "harmony Reflect API" (in progress))
    type: bool  default: false
  --harmony_destructuring (enable "harmony destructuring" (in progress))
    type: bool  default: false
  --harmony_default_parameters (enable "harmony default parameters" (in progress))
    type: bool  default: false
  --harmony_sharedarraybuffer (enable "harmony sharedarraybuffer" (in progress))
    type: bool  default: false
  --harmony_atomics (enable "harmony atomics" (in progress))
    type: bool  default: false
  --harmony_simd (enable "harmony simd" (in progress))
    type: bool  default: false
  --harmony_array_includes (enable "harmony Array.prototype.includes")
    type: bool  default: false
  --harmony_tostring (enable "harmony toString")
    type: bool  default: false
  --harmony_concat_spreadable (enable "harmony isConcatSpreadable")
    type: bool  default: false
  --harmony_rest_parameters (enable "harmony rest parameters")
    type: bool  default: false
  --harmony_sloppy (enable "harmony features in sloppy mode")
    type: bool  default: false
  --harmony_arrow_functions (enable "harmony arrow functions")
    type: bool  default: false
  --harmony_new_target (enable "harmony new.target")
    type: bool  default: false
  --harmony_object_observe (enable "harmony Object.observe")
    type: bool  default: false
  --harmony_spreadcalls (enable "harmony spread-calls")
    type: bool  default: false
  --harmony_spread_arrays (enable "harmony spread in array literals")
    type: bool  default: false
  --harmony_object (enable "harmony Object methods")
    type: bool  default: false

提前谢谢你!

EN

回答 1

Stack Overflow用户

发布于 2016-03-01 14:34:35

这篇文章应该为你指明你需要知道的一切方向:

做?

但也包括:

在V8中将和谐标志设置为true

获得源代码后,打开deps/v8/src/标志定义.h,查找第115行

将标志从false更改为true。

DEFINE_bool(和谐,真,“启用所有和谐功能”)

编译节点

./configure && make && make

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35725474

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档