Я столкнулся несколько проблем при осуществлении универсальных консоли на существующем угловом 2 приложения, следуя инструкциям по ссылке ниже https://universal.angular.io/quickstart/Угловая универсальная установка на существующих угловую 2 приложения с помощью интерфейса командной строки
На первой команды для установки углового -универсальный
npm install body-parser angular2-universal preboot express --save
Я получаю ошибки ниже
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (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"})
npm WARN enoent ENOENT: no such file or directory, open 'C:\test-app\node_modules\node_modules\package.json'
npm WARN [email protected] requires a peer of [email protected]~0.6.21 but none was installed.
npm WARN [email protected] requires a peer of [email protected]~0.6.21 but none was installed.
после выполнения второго команда Я столкнулся с ошибками, перечисленными ниже
/ Resolving "express" from "https://raw.githubusercontent.com/types/npm-express/40186271a77cdfad17681014be3ea8b05fc8dcf…- Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…\ Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…| Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…/ Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…- Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…\ Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…| Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…/ Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…- Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…\ Resolving "mime" from "https://raw.githubusercontent.com/types/npm-mime/c7c5810698b7eaa421702a53644a8963d372f758/typi…typings ERR! message Unable to find "node" ("npm") in the registry.
typings ERR! message However, we found "node" for 2 other sources: "dt" and "env"
typings ERR! message You can install these using the "source" option.
typings ERR! message We could use your help adding these typings to the registry: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/node/versions/latest responded with 404, expected it to equal 200
typings ERR!
typings ERR! cwd C:\test-app
typings ERR! system Windows_NT 10.0.14393
typings ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Ajackus Consultancy\\AppData\\Roaming\\npm\\node_modules\\typings\\dist\\bin.js" "install" "node" "express" "body-parser" "serve-static" "express-serve-static-core" "mime" "--global"
typings ERR! node -v v4.6.0
typings ERR! typings -v 2.1.0
typings ERR!
typings ERR! If you need help, you may report this error at:
typings ERR! <https://github.com/typings/typings/issues>
что мне не хватает?
но как я могу установить, установлен ли угловой2-универсальный? – yaser
проверить папку node_modules, если есть папка 'angular2-universal' – PierreDuc
да, она есть, но теперь после выполнения второй команды из учебника я получаю ошибку, указанную ниже, возможно, вы тоже с этим справитесь. – yaser