madhusudhand / angular2-cli Goto Github PK
View Code? Open in Web Editor NEWCommand Line Interface for developing Angular 2 apps
License: MIT License
Command Line Interface for developing Angular 2 apps
License: MIT License
Issues observed with npm 3
To list few: ng2 init is not installing all the dependent packages and build failing.
Also, issues observed in running the app because of npm's new hierarchy of node_modules.
My development machine is an Ubuntu 16.04.1 LTS (xenial xerus)
I installed nodejs including npm on it as desribed here:
http://www.angulartypescript.com/angular-typescript-npm-linux/
which gave me nodejs v6.9.2 and npm v3.10.9
I then went on and installed angular2-cli as described here: https://www.npmjs.com/package/angular2-cli
npm install -g angular2-cli
and went on with the instructions of that page and ran
ng2 create angular2-demo
cd angular2-demo
ng2 init
ng2 serve
which sadly only results in a webpage displaying "Loading...." forever and these errors output in the console:
angular2-demo-serve-error.txt
summary: as far as I understand it it complains that it Cannot read property 'exclude' of undefined
of the files src/main.ts
& src/vendor.ts
did I do something wrong or is there something broken?
OSX El Capitan (10.11.6)
Creating an app and trying to start a server:
$node -v
v5.12.0
$ng2 -V
0.2.3
$ng2 create TestApp
App created.
$cd TestApp
$ng2 init
Installed npm packages. (49 sec)
$ng2 serve
Clean successful.
Error copying vendor and/or third party libraries.
Unhandled rejection undefined
same for ng2 serve --dev, ng2 serve --prod, ng2 build...
Looks like issue is in angular-build.js file
module.exports = {
vendorNpmFiles: [
// these will be copied to dist/vendor
'@angular',
'rxjs', <-- after fresh installation this package is named as rx in node_modules
'systemjs',
'zone.js',
'reflect-metadata'
],
otherFiles: [
// add any files that needs to be copied to dist or any given path
// valid values
// 'src/CNAME' -> this copies file to dist folder
// { src: 'src/CNAME', dest: 'dist'} -> this copies file to the given location
'src/CNAME'
]
};
npm install [email protected] --save did the job for me
Can you please give me instructions about how to remove your code from my system. Your code works well but I've chosen to use angular-cli for now. Thanks
Mac OSX
D:\ajs2>ng2 serve --dev
Clean successful.
Error copying vendor and/or third party libraries.
Unhandled rejection undefined
Sass files isn't getting compiled after creation of a component.
need to run ng2 serve
again to compile newly created scaffolds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.