简体   繁体   English

NativeScript 不适用于带有 Node.js 11.1.0 的 Linux

[英]NativeScript does not work on Linux with Node.js 11.1.0

I am trying to set up NativeScript on my Arch Linux machine and When I run tns doctor I encounter the following message我正在尝试在我的 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)

I do not have much experience neither in Native Script nor in Node.js and related technologies.我在 Native Script 和 Node.js 及相关技术方面都没有太多经验。 Is there any simple fix for this issue?这个问题有什么简单的解决方法吗? Thanks in advance.提前致谢。

NativeScript CLI doesn't officially support Node v11.xx, try > 8 & < 11 . NativeScript CLI 不正式支持 Node v11.xx,请尝试 > 8 & < 11

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM