Ответ 1
Пакет yo
не правильно определяет вашу версию npm
. Результат установки указывает, что он установлен правильно.
В Windows 7 64 бит. Установлен Node.js через мастер, который дал мне npm.
Я запускаю npm install -g yo и получаю следующие
Ваша версия npm устарела.
Полная мощность:
C:\Users\dlite922>npm install -g yo
|
> [email protected] postinstall C:\Users\dlite922\AppData\Roaming\npm\node_modules\yo\node_modules\cross-spawn\node_modules\spaw
> node postinstall
C:\Users\dlite922\AppData\Roaming\npm\yo -> C:\Users\dlite922\AppData\Roaming\npm\node_modules\yo\lib\cli.js
> [email protected] postinstall C:\Users\dlite922\AppData\Roaming\npm\node_modules\yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ Node.js version
× npm version
Your npm version is outdated.
Upgrade to the latest version by running:
npm install -g npm
See this guide if you're having trouble upgrading:
https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory
Found potential issues on your machine :(
[email protected] C:\Users\dlite922\AppData\Roaming\npm\node_modules\yo
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], take
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], nested-error-stack
[email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Но у меня есть довольно недавняя версия npm:
C:\Users\dlite922>npm -v
2.10.1
Я следил за troubelshooting и помещал мои% appdata% npm BEFORE nodejs в свой список% PATH%, но все равно получаю ответ выше.
Любая удача?
PS: Кстати, этот средний стек настолько дезорганизован. Там 50 миллионов способов установки и все рекламируют быструю двухэтапную установку на их главной странице, как это самая легкая вещь в мире. Тогда все чувствуют себя глупо, когда 20 предварительных реквизитов, которые они предполагали, были установлены, не работают. Будущее Web App Development находится в руинах, если в наши дни javascript лидирует. Я думал, что дни PHP были плохими. лол /EndRant
Пакет yo
не правильно определяет вашу версию npm
. Результат установки указывает, что он установлен правильно.