vuesion / vuesion

Vuesion is a boilerplate that empowers product teams to build faster with modern best practices across engineering and design. It features a full-stack framework, comprehensive design system, robust testing, and seamless internationalization.

Home Page:https://vuesion.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Impossible to run npm run dev

josaphatim opened this issue · comments

Describe the bug
I'm unable to run scripts from the project.

To Reproduce
Steps to reproduce the behavior:

  1. npx @vuesion/create project-name '...'
  2. After installation finished i ran npm install then npm run dev '....'
  3. vuesion@4.4.0 dev appears then NODE_ICU_DATA=node_modules/full-icu nuxt -o '....'
  4. 'NODE_ICU_DATA' n’est pas reconnu en tant que commande interne
    ou externe, un programme exécutable ou un fichier de commandes.

I also tried to install via git clone then npm install but got same result

I have Nodejs 17 installed and npm 8.1

Screenshots
Capture

heys @josaphatim.
I never tested it with node 17 and npm 8.

It's tested with node 12/14 and npm 6/7.

If you can downgrade to one of these versions it should be fine.

Best,
Johannes

Thanks @devCrossNet, let me try.

Had the same issues.
Try this to install nuxt globally

npm install -g nuxt

Then remove NODE_ICU_DATA=node_modules/full-icu from the start of npm scripts
e.x.:
before: "dev": "NODE_ICU_DATA=node_modules/full-icu nuxt -o",
after: "dev": "nuxt -o"

PS: It seems only windows-platform issue

but please keep in mind that full-icu is needed to render date formats, etc. on the server-side. if you remove it, it can lead to hydration errors when using vue-i18n.

I have tested it on windows using nodejs 14 but got the same error

can you try the workaround from @belov38 ?

I have no windows system to replicate the error. what does the error message say translated into English? maybe, it's an issue with the ENV variable on windows. I didn't use cross-env in the scripts

I try workaround from @belov38 it worked.

But that i'll be using full_icu for my projects.

Translated error message is: 'NODE_ICU_DATA' is not recognized as an internal or external executable program or a file of commands.

@josaphatim thank you for the translation. I will look into this issue asap. I have the feeling it's something specific to windows that might be solved already in either the nuxt community or in the ICU docs.

Thank you for help

commented

I have the same issue, I believe this is because NODE_ICU_DATA=node_modules/full-icu nuxt -o in windows will try to run NODE_ICU_DATA instead of setting the variable.
To set a variable in windows it uses SET VAR=VALUE.

I managed to get it running by changing the line in package.json to "dev": "SET NODE_ICU_DATA=node_modules/full-icu && nuxt -o"

@Loopios7 can you do me the favour and try if https://www.npmjs.com/package/cross-env could be a viable option to support windows in this case? Then I will include it in the next update.