Node version issue when creating Vue CLI 3 app - node.js

I have installed the latest Vue CLI to version 3.1.3.
I'm trying to create a new app with vue create app
This goes fine until Yarn tries to install the dependancies:
yarn install v1.12.3
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error eslint#5.9.0: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0". Got "8.9.4"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR command failed: yarn
node --version shows I'm using 8.9.4.
When I try to update node via homebrew I get an error saying I already have node 11.2.0:
Simons-MBP-2:~ Simon$ brew upgrade node
Updating Homebrew...
Error: node 11.2.0 already installed
Simons-MBP-2:~ Simon$ node --version
v8.9.4
Could this be related to a 'path' issue. I am trying to create my vue app on a directory in my regular path where all my other projects are.

Related

node 19 hangs when installing Realm

I am trying to install realm in a fresh react-native project. but when I run this command yarn add realm or npm I realm it always stop on this step.
[4/4] 🔨 Building fresh packages...
[1/1] ⠄ realm
and nothing is happening. I have tried many version to install but same issue,
As #engr-aftab-ufaq said, installing nvm and then using the latest LTS version (v18.14.0 as I'm writing), then re-running npm install realm, fixed the problem for me
For node 19, you can try this
npm install --save realm#11.4.0
Please check for compatibility with you node and react native version: https://github.com/realm/realm-js/blob/master/COMPATIBILITY.md

Expo Go there was problem loading the requset app

i have run a react native with Expo application .
i used yarn package manger run the commands
yarn install
then expo start
there is an warning upper
WARNING: expo-cli has not yet been tested against Node.js v17.8.0.
If you encounter any issues, please report them to https://github.com/expo/expo-cli/issues
expo-cli supports following Node.js versions:
=12.13.0 <13.0.0 (Maintenance LTS)
=14.0.0 <15.0.0 (Active LTS)
=15.0.0 <17.0.0 (Current Release)
and expo go show this message there was problem loading the requset app
node.js version v16.14.2
Expo version 5.3.0
u are using current release version which is not yet tested with expo
use LTS version
first check you node version
go to cli then enter node -v
if it is not the required version then install the required version using the command
npm install -g node#version
the recommended version is 16.14.2 (LTS)

Looking for fix

npx create-react-app online exam
npx: installed 98 in 34.58s
Creating a new React app in /home/oem/online.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
yarn add v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
error #typescript-eslint/eslint-plugin#2.24.0: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "11.0.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Aborting installation.
my node version-: node -v
v14.8.0
my npm version-: npm -v
6.14.8
The #typescript-eslint/eslint-plugin package only supports Active LTS and Maintenance LTS of Node releases. You are using the Node version of v14.8.0 which is not an LTS version.
According to #typescript-eslint/eslint-plugin docs
This project makes an effort to support Active LTS and Maintenance LTS release statuses of Node according to Node's release document. Support for specific Current status releases are considered periodically.
More information about Node's release can be found here. Try switching an LTS version of the Node. The latest LTS versions can be found here.

I am getting various warrnings and errors when trying to create react app with npx

I am trying to create react app with npx and get the following error: error fork-ts-checker-webpack-plugin#1.5.0: The engine "yarn" is incompatible with this module. Expected version ">=1.0.0".
Any ideas what could be the source of the issue? any tips would be appreciated. Thanks!
npx create-react-app food
npx: installed 91 in 5.566s
Creating a new React app in /home/oren/m/code/food.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
yarn add v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents#1.2.9: The platform "linux" is incompatible with this module.
info "fsevents#1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
warning fsevents#2.0.7: The platform "linux" is incompatible with this module.
info "fsevents#2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
error fork-ts-checker-webpack-plugin#1.5.0: The engine "yarn" is incompatible with this module. Expected version ">=1.0.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Aborting installation.
yarnpkg add --exact react react-dom react-scripts --cwd /home/oren/m/code/food has failed.
Deleting generated file... package.json
Deleting generated file... yarn.lock
Deleting food/ from /home/oren/m/code
Done.
About my environment:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
$ uname -a
Linux oren 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
node -v
v12.8.0
npm -v
6.10.2
I have solved by installing latest version of Yarn.
- first uninstall version
- installed latest version npm install -g yarn
- removing yarn cache folder in the AppData folder has solved my issue C:\Users\test\AppData\Local\Yarn
Look at this line in the log error fork-ts-checker-webpack-plugin#1.5.0: The engine "yarn" is incompatible with this module. Expected version ">=1.0.0". It says your yarn version is not compatible. You have yarn v0.16.1 but it has to be above 1.0.0. Please try to update your yarn version.
If anyone else is struggling with this even after uninstalling/reinstalling yarn from npm, for me I actually had an old version of yarn installed outside of npm or another package manager, and I had to uninstall it from the Add or Remove Programs list in Windows.

Node.js Failing to Create App After updating

I'm using Window's bash to create a react app ad I get this error. I tried updating eslint and using npx create-react-app xyz, however, I get the below error message.
$ npx create-react-app demo-counter
npx: installed 1 in 14.364s
Path must be a string. Received undefined
C:\Users\Rob\AppData\Roaming\npm\node_modules\create-react-app\index.js
Creating a new React app in C:\Users\Rob\webprojects\september\demo-counter.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
yarn add v1.9.4
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
error eslint#5.6.0: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Aborting installation.
yarnpkg add --exact react react-dom react-scripts --cwd C:\Users\Rob\webprojects\september\demo-counter has failed.
Looks like you might be on an unsupported version of node. What's the output when you type node -v in your terminal?

Resources