Erreur lors de la creation d'un projet avec vue create

Hello,

Lorsque je crée un projet avec vue create, voici mes choix
1.Manually select features
2. Choose Ve version
Babel
CSS Pre-processors
Linter / Formatter
3. 3.X
4. Sass/SCSS (with node-sass)
5. ESLint with error prevention only
6. Lint on save
7. In dedicated config files
8. N

Et là c’est les erreurs…

vue create test_4

Vue CLI v4.5.15
? Please pick a preset: Manually select features
? Check the features needed for your project: Choose Vue version, Babel, CSS Pre-processors, Linter
? Choose a version of Vue.js that you want to start the project with 3.x
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Sass/SCSS
(with node-sass)
? Pick a linter / formatter config: Basic
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files
? Save this as a preset for future projects? No

Vue CLI v4.5.15
:sparkles: Creating project in __0_VUE\test_4.
:card_file_box: Initializing git repository…
:gear: Installing CLI plugins. This might take a while…

added 1277 packages in 4m

12 packages are looking for funding
run npm fund for details
:rocket: Invoking generators…

npm ERR! code 1
npm ERR! path \Desktop__0_VUE\test_4\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:\Python310\python.EXE -c import sys; print “%s.%s.%s” % sys.version_info[:3];
npm ERR! gyp ERR! stack File “”, line 1
npm ERR! gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
npm ERR! gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
npm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(…)?
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:397:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm ERR! gyp ERR! System Windows_NT 10.0.19044
npm ERR! gyp ERR! command “C:\Program Files\nodejs\node.exe” “\Desktop\__0_VUE\test_4\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd \Desktop__0_VUE\test_4\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.13.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR! \AppData\Local\npm-cache_logs\2022-01-09T23_21_52_176Z-debug-0.log
ERROR command failed: npm install --loglevel error --legacy-peer-deps

Donc voilà la situation, est-ce que c’est compliqué à résoudre ?

Par avance, merci

up please, j’ai besoin d’éclaircissement

On dirait que c’est un problème de construction de node-sass.

Je recommande plutôt d’essayer dart-sass, qui est censé remplacer node-sass.

Ok je test ça et je donne le résultat

Merci zicklag, it’s work with dart-sass !! après 3 semaines de recherche, je suis enfin débloqué

1 Like

Yay! Je suis tellement content d’avoir pu aider!

Et moi que tu ais pu m’aider, merci !

1 Like