Comments (9)
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.
I have same problem too.
from lite-server.
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.
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.
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.
I am running on ubuntu 14 with node v5.3 and I have the same problem with the angular2 quick start
from lite-server.
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.
The fix from #57 may help. Give lite-server v2.2.0 a try.
from lite-server.
@farens That worked for me. Thanks!
from lite-server.
Related Issues (20)
- Installation fails E429 too many Requests HOT 1
- Not listening on this port
- npm audit found vulnerabilities HOT 1
- npm is not started started script missing HOT 1
- i m trying to run npm start command but it is giving following error
- Problem with npm install HOT 2
- unable to start lite-server on wsl2 HOT 1
- Error using lite-server for create-react-app HOT 3
- The package needs to update axios to solve high severity vulnerability HOT 1
- Disable SPA handling? HOT 1
- lite-server doesn't trigger or reload the page when I save the page after adding something .
- CORS 404 OPTIONS HOT 2
- How to get Directory Listing working?
- Trying to start an html website using NPM and Lite-server HOT 2
- lite-server not installing using (npm install lite-server -g) HOT 1
- Lite-server dependecies are vulnerable (The Async package have a vulnerability)
- lite-server generating three Uncaught (in promise) errors after each reload
- Lite server disables CDN links
- Static files and api proxy HOT 1
- npm & github recommend not using: "All versions of package lite-server are vulnerable to Denial of Service"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lite-server.