Skip to content

Support for Node.js 14.0.0 is not verified #5306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tekpriest opened this issue May 14, 2020 · 8 comments · Fixed by #5316
Closed

Support for Node.js 14.0.0 is not verified #5306

tekpriest opened this issue May 14, 2020 · 8 comments · Fixed by #5316

Comments

@tekpriest
Copy link

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

@darylteo
Copy link

darylteo commented May 19, 2020

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

@ThViana94
Copy link

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

@tekpriest
Copy link
Author

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

@NathanWalker
Copy link
Contributor

NathanWalker commented May 30, 2020

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

@NathanWalker NathanWalker reopened this May 30, 2020
@gravataLonga
Copy link

gravataLonga commented May 30, 2020

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. :)

@NathanWalker
Copy link
Contributor

NathanWalker commented May 30, 2020

@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

@NathanWalker
Copy link
Contributor

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

@gravataLonga
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants