D
D
Denis Smirnov2017-03-14 12:21:29
JavaScript
Denis Smirnov, 2017-03-14 12:21:29

How to properly install vue-cli?

Hello. I'm trying to use vue-cli on windows 7. I install it (npm install -g vue-cli) and I can't initialize the project with the vue command, because the vue command is not recognized.
<<<<<<

D:\test-tasks\test-vue-cli>npm i -g vue-cli

C:\Users\Smirnov.Denis\AppData\Roaming\npm\vue -> C:\Users\Smirnov.Denis\AppData\Roaming\npm\node_modules\vue-cli\bin\vue
C:\Users\Smirnov.Denis\AppData\Roaming\npm\vue-list -> C:\Users\Smirnov.Denis\AppData\Roaming\npm\node_modules\vue-cli\bin\vue-list
C:\Users\Smirnov.Denis\AppData\Roaming\npm\vue-init -> C:\Users\Smirnov.Denis\AppData\Roaming\npm\node_modules\vue-cli\bin\vue-init
C:\Users\Smirnov.Denis\AppData\Roaming\npm\vue-build -> C:\Users\Smirnov.Denis\AppData\Roaming\npm\node_modules\vue-cli\bin\vue-build
C:\Users\Smirnov.Denis\AppData\Roaming\npm
`-- [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules\vue-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

D:\test-tasks\test-vue-cli>vue
"vue" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

>>>>>
Why so?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ro37A, 2017-03-14
@Feuway

Add C:\Users\Smirnov.Denis\AppData\Roaming\npm\ to PATH.

A
Anton, 2017-12-25
@Eridani

data-t oog le="collapse"
data-toggle="collapse"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question