Nativescript-cli: Support for Node.js 14.0.0 is not verified

Created on 14 May 2020  路  8Comments  路  Source: NativeScript/nativescript-cli

Environment
Manjaro Linux 20.0.1 Lysia
Node 14.0.0
npm 6.14.5

Describe the bug
`Support for Node.js 14.0.0 is not verified. NativeScript CLI might not install or run properly.

The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received null
Error while reporting exception: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received null
`

To Reproduce
npm install -g nativescript
or
`npm install -g nativescript@latest

Most helpful comment

Closing as verified fix here - if you find further issue just let us know. Good luck on your first app @gravataLonga 馃帀

All 8 comments

Not aware of any system changes that might have caused this to come up now. Mine was 14.2.0

On releases page 6.4.1 is the latest, but tns --version gives me 6.5.0.

Reverting to 6.4.1 does not resolve the issue.

Force installing Node v12 resolves issue but may not be the ideal solution for some.

OS X Catalina 10.15.4

Having the same issue.
In my terminal, when I type tns --version, this is my result :
@arch ~]$ tsn --version
bash: tsn: command not found
[thiago@arch ~]$ tns --version
(node:7844) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:7844) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:7844) Warning: Accessing non-existent property 'which' of module exports inside circular dependency

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

6.5.0

I was able to use this workaround
Using nvm
Uninstall the latest version of your node if you are using Windows, not necessary for Unix Users
Then, install the latest version of nvm using the instructions on the page.

Steps

Install the specific version Nativescript requires nvm install 12.16.3
Doing this will make node 12.16.3 default.
To use the latest version of node nvm install node
It'll install the two versions, you can check by using nvm ls
To use a specific installed version of node(for example v12) nvm use 12.16.3
What I did was create aliases so I can easily switch
nvm alias n12 12.16.3 for v12
nvm alias n14 14.3.0 for v14

switch to v12 nvm use n12 and npm install -g nativescript
then create your Nativescript app tns create AppName

When you are done you switch back to latest version nvm use n14.
Hope this is fixed soon

Support for node 14 is now available in v6.7.2 release 馃憤

I'm have this problem, today. My node version is 14.3.0 on OSX,
Screenshot 2020-05-30 at 08 50 55. I'm starting today my first app on NativeScript! Oh yeah!! Let's go to build and get some fun :D

P.s. Non english native here. So, sorry about any typo. :)

@gravataLonga please try 6.7.2 published now.
you can just npm uninstall -g nativescript to ensure prior version is totally removed and then install latest published just mins ago:

npm install -g nativescript

Closing as verified fix here - if you find further issue just let us know. Good luck on your first app @gravataLonga 馃帀

@NathanWalker it's work! Thank you so much!!

Screenshot 2020-05-30 at 09 11 52

I have another issue non-related which is i don't have tns command in my system, i think is because of my $PATH isn't updated for years :D But rather than that this issue is resolved, i can confirm.

Was this page helpful?
0 / 5 - 0 ratings