Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Quickstart Seed Project from Angular.io Error on npm start #3281

Closed
lee-alderdice opened this issue Feb 20, 2017 · 10 comments
Closed

Quickstart Seed Project from Angular.io Error on npm start #3281

lee-alderdice opened this issue Feb 20, 2017 · 10 comments

Comments

@lee-alderdice
Copy link

Hi,

I am just beginning to learn Angular. Having followed the instructions in the tutorials and setup node.js on running the application with npm start there is an error.

The log file is attached ... is this an issue on my system that I need to resolve?

Many thanks for any help.
npm-debug.txt

@chazeah
Copy link

chazeah commented Feb 22, 2017

Was having this error and did two things:

  1. Pinned jasmine types to lower version: "@types/jasmine": "2.5.41",
  2. Used a simpler loaders: Angular.io Webpack Intro with VS 2015 Update 3 - documentation #3227 (comment)

Hopefully that helps!

@lee-alderdice
Copy link
Author

Hi,
Thanks so much for the reply. I found the jasmine types and I was at version 2.5.36 ... I have updated mine to match yours. Please excuse the noob question, what are and where are loaders?
Thanks.

@chazeah
Copy link

chazeah commented Feb 22, 2017

If you're following the tutorial, the loaders line is in webpack.common.js.

@Foxandxss
Copy link
Member

He is not using Webpack, just the quickstart.

Problem with your error is that it doesn't show much.

@lee-alderdice
Copy link
Author

lee-alderdice commented Feb 27, 2017

That is exactly what I was thinking ... I am still trying to get it all working, if intermittently as it is on the job learning that I am doing. I have been adjusting Environment Variables, Directories, reinstalling stuff ... still no joy. I made changes to the @types as suggested and other changes as well as I have found on SO.

@ghost
Copy link

ghost commented Apr 4, 2017

@lee-alderdice , did you finally fix this?

You can try out the cli-quickstart (it is more beginner friendly) :

https://angular.io/docs/ts/latest/cli-quickstart.html

And you can install latest versions fo node/npm/angular, and try the tutorial again.

@Foxandxss
Copy link
Member

Reopen if this is still an issue.

@lee-alderdice
Copy link
Author

lee-alderdice commented Apr 4, 2017 via email

@lee-alderdice
Copy link
Author

By using the CLI QuickStart as advised by @lazaridis-com and then building out from there I have got much further. Installing the Heroes tutorial and running npm start still fails but starting from the CLI quick set up, building the files one by one and using ng serve -o works.

However I have hit an issue with a missing .then() property on the type Hero[], in the revised getHeores() method that has me stumped. Shall I raise an issue here or SO?

@ghost
Copy link

ghost commented Apr 4, 2017

[when answering via email to github issues, please delete the quoted text before sending the reply ]

@lee-alderdice, glad it got better. As for your new problem: yes, please prefer to ask a question on SO.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants