【问题标题】:NativeScript does not work on Linux with Node.js 11.1.0NativeScript 不适用于带有 Node.js 11.1.0 的 Linux
【发布时间】:2018-11-08 19:58:21
【问题描述】:

我正在尝试在我的 Arch Linux 机器上设置 NativeScript,当我运行tns doctor我遇到以下消息

Support for Node.js 11.1.0 is not verified. NativeScript CLI might not install or run properly.

ReferenceError: internalBinding is not defined
    at fs.js:25:1
    at req_ (/usr/lib/node_modules/nativescript/node_modules/natives/index.js:140:5)
    at Object.req [as require] (/usr/lib/node_modules/nativescript/node_modules/natives/index.js:54:10)
    at Object.<anonymous> (/usr/lib/node_modules/nativescript/node_modules/fstream/node_modules/graceful-fs/fs.js:1:99)
    at Module._compile (internal/modules/cjs/loader.js:707:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
    at Module.load (internal/modules/cjs/loader.js:605:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
    at Function.Module._load (internal/modules/cjs/loader.js:536:3)
    at Module.require (internal/modules/cjs/loader.js:643:17)

我在 Native Script 和 Node.js 及相关技术方面都没有太多经验。这个问题有什么简单的解决方法吗?提前致谢。

【问题讨论】:

    标签: android node.js linux npm nativescript


    【解决方案1】:

    NativeScript CLI 不正式支持 Node v11.x.x,try > 8 & < 11

    "engines": {
        "node": ">=8.0.0 <11.0.0"
      }
    

    【讨论】:

      猜你喜欢
      • 2019-04-19
      • 2019-04-09
      • 1970-01-01
      • 1970-01-01
      • 2021-01-07
      • 2018-06-12
      • 2019-03-28
      • 2020-10-01
      • 1970-01-01
      相关资源
      最近更新 更多