Create React App not working : error #typescript-eslint/eslint-plugin#2.10.0: The engine "node" is incompatible with this module? - create-react-app

I'm not sure why yarn create react app fails. The error message suggest #typescript-eslint/esling-plugin version is not compatible with the node engine. I've also tried yarn cache clean --force but doesn't work. I don't have a package.json to change the node engine as you can see on the terminal it gets deleted. Thank you
yarn v : 1.21.1
node v : 11.2.0

You have node version:
node v : 11.2.0
Error message:
Expected version "^8.10.0 || ^10.13.0 || >=11.10.1"
Version >=11.10.1 mean 11.10.1, 11.10.2, ..., 11.11.* ...
You have 10.2 which is less then 11.10
Upgrade node, or search another version of library which is compatible with your node version if any

Related

vite - create-vite got error in node version 18

I am using yarn create vite to create my vue project, but after executed command I got following error message:
error expo-cli#6.0.2: The engine "node" is incompatible with this module. Expected version ">=12 <=16". Got "18.1.0"
error Found incompatible module.
I know that error message means I need to use node version between 12~16, but I am confused that there's no mentioned node version 18 cannot use in vite document.
Also, in the package.json, there's only limit on 14.18.0 or 16+
Am I missing something?
The error is not with vite but with expo-cli as it says right at the start of your error message: error expo-cli#6.0.2:. As the expo-cli docs state:
Only Node.js LTS releases (even-numbered) are recommended
The latest node LTS version being 16.17.1

Node Sass version 7.0.0 is incompatible with ^4.0.0

I am running a react app using node (version 16.13.1). Apparantly I am supposed to use node sass version 7.0.0.
So I install version 7.0.0, but when I run my application I get this error :
./src/misc/loading.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/react-scripts/node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/misc/loading.scss)
Error: Node Sass version 7.0.0 is incompatible with ^4.0.0.
Why am I getting this error?
And "incompatible with 4.0.0" means what? 4.0.0 of which module? node? sass? react? npm?

Unable to run vue command

I'm trying run the vue command on the Windows command prompt.
I installed Node and then Vue CLI by using command npm install -g #vue/cli, but when I run vue create test, I see an error. I reinstalled Node and #vue/cli, but that didn't work. Here's the error:
Vue CLI requires Node 8.9+, as stated in the docs:
Node Version Requirement
Vue CLI requires Node.js version 8.9 or above (8.11.0+ recommended). You can manage multiple versions of Node on the same machine with nvm or nvm-windows.
The error indicates a syntax error for the async keyword, which is not supported in older versions of Node.

why does error about global installation of Expo CLI occur for vue-native init command?

First, some environment details -
Virtual Box 6.0
guest OS: Ubuntu 18.04
host OS: Windows 10
package versions on guest -
nodeJS 8.10.0
npm 3.5.2
expo-cli 3.9.1
vue-native-cli 0.1.1
Now for the issue and question -
When the vue-native init my-vue-app command is executed while in a location in the home directory of the guest the response is the following:
An error occurred while getting Expo CLI version
Please globally install expo-cli
However, Expo CLI is installed globally
What is causing this error when Expo CLI is already installed globally? What should be done to get the vue-native init my-vue-app command to execute successfully?
I was able to get the vue-native init my-vue-app command working by starting with a clean VM and doing the package installation differently than on the first VM. Two changes were made on the second VM:
Node version manager (called n) was used to install NodeJS and npm (rather than using curl)
Expo CLI was installed globally using npm (not Yarn)
I'm not sure if one of these changes or both were necessary to get Vue Native to work because they were not tested separately but Vue Native is working now! Woo hoo!
Here is a screenshot of the package versions on the working VM:

React Native - Can not create new project via react-native-cli when react-native version is > 0.55

I am trying to create new project via react native project via react-native-cli react-native init ProjectName and get the following error
error Found incompatible module info
Visit https://yarnpkg.com/en/docs/cli/add for documentation about this
Error: Command failed: yarn add react-native --exact
Project can be created with the same command when react native version is less then or equal to 0.54
react-native init ProjectName --version react-native#0.54
The following links also did not helped me.
https://github.com/facebook/react-native/issues/14861
https://github.com/yarnpkg/yarn/issues/3227
I solve the problem just moment.
the reason is node version problem.
you can install >10.0 node.
then, react-native init project succeed.
I came across similar issue. Following are the steps I took to solve it.
Noticed the yarn error occurs due to incompatible node module version. It required node version >= 8.0. For this, I changed the node version using nvm:
nvm use 8.0.0
Note: Check first if you have a installed node version >= 8.0 using nvm list. If yes, just use the above command. Otherwise install it by nvm install v8.0.0.
After this, you might come across similar error for npm. I did not have updated npm version. Install latest npm by npm install -g npm#latest
Try to create new react-native project, react-native init HelloWorld.