A
A
Alexander Belov2017-02-25 18:07:32
JavaScript
Alexander Belov, 2017-02-25 18:07:32

How to run Angular Universal without wanting to throw a stone at whoever invented it?

I'm trying to install Angular Universal , following the installation steps from. site. At step 2, point 2 is all ... I wonder if they tried to install it themselves?
The console is full of errors.

typings ERR! deprecated The "ambient" flag is deprecated. Please use "global" instead

Ok, I do the same, at the end I write global instead of ambient .
typings INFO globaldependencies "body-parser" lists global dependencies on "node" that must be installed manually
typings INFO globaldependencies "express" lists global dependencies on "node" that must be installed manually
typings INFO globaldependencies "serve-static" lists global dependencies on "node" that must be installed manually
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

wtf? Wasting time again to test, what does Hello world look like in this Angular Universal blued ?
How to set up correctly? Or maybe someone has a working template on github (just don’t offer someone else’s, there are a couple there, but heaped xs of what, I need a minimal template to customize for myself)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Kitmanov, 2017-02-26
@k12th

Xs, what is it, but typings is outdated more than six months ago and is no longer used. That is, this case has not been updated since the release of Angular 2.

O
ozknemoy, 2017-02-27
@ozknemoy

I use universal-starter a month ago flight is normal

A
Andrey Titov, 2017-07-05
@titov_andrei

There was a similar error with the installation es6-shim.
This method helped:
$ typings install dt~es6-shim --save --global

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question