Giter Site home page Giter Site logo

Comments (9)

farens avatar farens commented on August 22, 2024 2

I had the same problem with a similar setup(Linut Mint, old npm and old node). Updating npm and node didn't help. The solution in this stack overflow answer did the trick for me: http://stackoverflow.com/questions/35512996/work-around-or-fix-for-npm-lite-server-on-linux-error-when-running-angular-2-qui/35617856#35617856

from lite-server.

SaturnTeam avatar SaturnTeam commented on August 22, 2024

I have same problem too.

from lite-server.

johnpapa avatar johnpapa commented on August 22, 2024

we'd need to know wha tyou ran , what the env is, what you tried to fix it ...

did you retry npm install? did you clear the npm cache?

from lite-server.

sinatosk avatar sinatosk commented on August 22, 2024

I'm on arch linux using nodejs 5.7.1 with npm 3.8.0

I've retried it 7 times scratch with same error

there are other people on different platforms (Mac OSX, Ubuntu) with different versions with same issue

contents of package.json from https://angular.io/docs/ts/latest/quickstart.html#!#package-json

{
  "name": "angular2-quickstart",
  "version": "1.0.0",
  "scripts": {
    "start": "concurrently \"npm run tsc:w\" \"npm run lite\" ",    
    "tsc": "tsc",
    "tsc:w": "tsc -w",
    "lite": "lite-server",
    "typings": "typings",
    "postinstall": "typings install" 
  },
  "license": "ISC",
  "dependencies": {
    "angular2": "2.0.0-beta.8",
    "systemjs": "0.19.22",
    "es6-promise": "^3.0.2",
    "es6-shim": "^0.33.3",
    "reflect-metadata": "0.1.2",
    "rxjs": "5.0.0-beta.2",
    "zone.js": "0.5.15"
  },
  "devDependencies": {
    "concurrently": "^2.0.0",
    "lite-server": "^2.1.0",
    "typescript": "^1.8.2",
    "typings":"^0.6.8"
  }
}

I do "npm install" and then after "npm start" which is when the error occurs

error from command line http://pastebin.com/qpLPqFGB

error from npm-debug.log http://pastebin.com/YP4aFPnx

from lite-server.

myusrn avatar myusrn commented on August 22, 2024

Just as a comparison does cloning https://github.com/myusrn/vscwithng2, which is an implementation of that current ng2 5 minute quickstart, and executing "npm start" work for you or repro the same issue you outline above?

I just the other day updated, and tested on my wks, this to so as to align with current ng2 5 minute quickstart [ https://angular.io/docs/ts/latest/quickstart.html ] details that are now based on ng2.0.0-beta.8 and lite-server ^2.1.0. For the latter i added bs-config.json with default settings in place to facilitate changing default port number if desired.

Note that i have node 5.7.0 and npm 3.6.0 in place which is different than your 5.7.1 and 3.8.0 installs.

from lite-server.

 avatar commented on August 22, 2024

I am running on ubuntu 14 with node v5.3 and I have the same problem with the angular2 quick start

from lite-server.

johnpapa avatar johnpapa commented on August 22, 2024

interesting. might be something with this combo

19 error node v5.7.1
20 error npm  v3.8.0

have you tried node 4 or npm 2?

from lite-server.

cgmartin avatar cgmartin commented on August 22, 2024

The fix from #57 may help. Give lite-server v2.2.0 a try.

from lite-server.

butters16 avatar butters16 commented on August 22, 2024

@farens That worked for me. Thanks!

from lite-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.