Skip to content

Instantly share code, notes, and snippets.

@deepak-cotocus
Last active February 29, 2024 07:40
Show Gist options
  • Save deepak-cotocus/0238d919153cb7dce1cd0bdda41e2973 to your computer and use it in GitHub Desktop.
Save deepak-cotocus/0238d919153cb7dce1cd0bdda41e2973 to your computer and use it in GitHub Desktop.
cross-env: Permission denied

Error:

Vue packages version mismatch:

Introduction:

Though the version of the Vue-template-compiler is older than that of the Vue I just updated it to same version number as the Vue thus 2.6.11 In your case the number might not be same as mine so replace the version which shows in your error.

Error:

ERROR in ./resources/assets/js/components/ExampleComponent.vue
Module build failed: Error:

Vue packages version mismatch:

- vue@2.6.11
- vue-template-compiler@2.5.16

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.

image

Solution

npm install [email protected] --save-dev

It worked for me....

Then run npm run prod and check evrything will work fine.

Thanks

@sztadii
Copy link

sztadii commented Feb 29, 2024

or you can just uninstall cross-env npm uninstall cross-env and install it again npm install cross-env. It worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment