Random UUID values not getting generated with uuidv4 npm module
Jun 15, 2023 - by kurinchilamp / Javascript / Post Comment
Install the below npm modules
$ yarn add uuid react-natie-get-random-values
Add in these below imports to your code
import { v4 as uuid } from 'uuid';
import 'react-native-get-random-values';
Print the uuid value now
console.log(uuid())
Continue Reading
Ionic: Newer version doesn’t show up after global install
Apr 18, 2019 - by kurinchilamp / / Post Comment
You can install the latest version of Ionic and Cordova CLI using a single command
$ npm install ionic cordova -g
Still, you may get a notification message saying
"Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`"
Or, incorrect version numbers for ionic and cordova even after installing their latest versions globally.
(more…)
Continue Reading
How to run multiple node versions in a computer?
Jul 16, 2017 - by kurinchilamp / / Post Comment
Solution is to use Node Version Manager (nvm) which helps manage multiple version of node versions.
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
To see the list of all available nvm versions,
$ nvm ls-remote
Currently, Node v6.11.1 has the long term support (Latest LTS: Boron). We will setup that first version
$ nvm install 6.11
The above command will install Node.js version 6.11.x (where x will be the last available version number)
To find where the node version is installed, type
$ nvm which 6.11
As of this writing, the latest version available is v8.1.4
$ nvm install 8.1.4
When nvm installs the corresponding npm package also gets installed.
You can switch between different versions of the node by typing
$ nvm use 6.11.1
or
$ nvm use 8.1.4
To list all the available versions of installed node versions, type
$ nvm ls
Continue Reading