Can't install @vue/cli 3 on Windows 10

18,891

Solution 1

There seems to be an issue on vue cli 3. For the time being, it's best to stick to version 2. You can learn more about the issue here.

Solution 2

None of the above replies worked for me it was impossible to install vue via npm (I have windows 7). I just installed vue cli 3 via yarn and it worked perfeclty.

Share:
18,891

Related videos on Youtube

Grégory Huyghe
Author by

Grégory Huyghe

Updated on September 14, 2022

Comments

  • Grégory Huyghe
    Grégory Huyghe over 1 year

    I can't install the most recent version of Vue, either globally or locally.

    I have this error, for both installations. I don't understand why Node is not recoginized as a command as it works well for other packages.

    For example, installation of Vue 2 with vue-cli works perfectly. I have also checked the path in advanced systems, and added it to the installation folder D:\Nodejs, both system and user variables.

    $ npm install -g @vue/cli
    npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
    npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
    C:\Users\huygh\AppData\Roaming\npm\vue -> C:\Users\huygh\AppData\Roaming\npm\node_modules\@vue\cli\bin\vue.js
    
    > [email protected] postinstall C:\Users\huygh\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\protobufjs
    > node scripts/postinstall
    
    'node' n'est pas reconnu en tant que commande interne
    ou externe, un programme ex▒cutable ou un fichier de commandes.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@vue\cli\node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] postinstall: `node scripts/postinstall`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\huygh\AppData\Roaming\npm-cache\_logs\2018-12-19T09_25_36_393Z-debug.log
    

    Other packages like Angular work correctly. Here are the other global packages:

    C:\Users\huygh\AppData\Roaming\npm
    +-- @angular/[email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    `-- [email protected]
    
  • Grégory Huyghe
    Grégory Huyghe over 5 years
    I solved (for now) my problem by using Windows Command Prompt. It allowed me to installed it globally and to do npm run serve (also impossible from Git Bash).