vite - create-vite got error in node version 18 - vue.js

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

Related

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.

NPM Error: EPERM: operation not permitted. Tarball data for <package> seems to be corrupted

I've been trying to create a new angular app with the cli, but I keep getting this error.
At first I thought it was something related to the version of cli I had installed( the latest one), so I uninstalled it and tried with the same version(6.0.8) that is used in the course I'm following along, but I get the same error :
Do you have any idea how I can figure out what is causing this issue?
Is there any log I can check?
I'm using :
Node: v8.11.3
Npm: 6.4.1
Windows 10 Pro.
I resolved it using this command:
npm install --registry https://registry.cnpmjs.org

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.

Vue.js 2.3.2 version mismatch

After running npm run watch in terminal on my php laravel project I got this error:
Module build failed: Error:
Vue packages version mismatch:
- vue#2.3.2
- vue-template-compiler#2.2.6
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader#>=10.0, simply update vue-template-compiler.
If you are using vue-loader#<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
I tried to run this command npm update vue-template-compiler but the error remained.
Did somebody else meet with this problem?
I found the soluiton, I had to delete the node_modules folder, after I had to run npm install then the problem is solved.

Stencil Paper.loadTranslations Error

When trying to run Stencil I am receiving the error below.
Debug: internal, implementation, error
TypeError: Uncaught error: self.assembler.getTranslations is not a function
at Paper.loadTranslations (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/#bigcommerce/stencil-paper/index.js:137:20)
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/#bigcommerce/stencil-paper/index.js:62:18
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/async/lib/async.js:718:13
at async.forEachOf.async.eachOf (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/async/lib/async.js:233:13)
at _parallel (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/async/lib/async.js:717:9)
at Object.async.parallel (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/async/lib/async.js:731:9)
at Paper.loadTheme (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/node_modules/#bigcommerce/stencil-paper/index.js:60:11)
at respond (/user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/server/plugins/renderer/responses/pencil-response.js:29:15)
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/server/plugins/renderer/renderer.module.js:49:18
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/#bigcommerce/stencil-cli/server/plugins/renderer/renderer.module.js:246:24
My setup is as follows:
MacOS 10.11.5
NVM 0.31.0
Node 4.4.0
Stencil 1.3.5
I have tried a fresh install of NVM and Node by first uninstalling NVM and following the guide at https://stencil.bigcommerce.com/docs/installing-and-launching-stencil-1 end to end. This has not resolved the error and I cannot run stencil.
Has anyone else encountered this issue or have a solution?
If you pull down the latest version of Stencil (just deployed in the last couple hours), you should have a fix for this. It was an issue introduced in a previous (recent) release.
npm install -g bigcommerce/stencil-cli
That should pull the update.