Make "ng new" use RC5
When running "ng new", the newly generated package.json will include RC4 dependencies. These should be bumped to RC5, right?
My environment: Windows 7 32bit angular-cli: 1.0.0-beta.10 node: 6.3.1 os: win32 ia32
@SenthilKumaranC you do it wrong, the right way npm i -g npm@latest.
Buddy Still it is working for me now.. thanks a lot
I have given elevated priviliges to command prompt....
npm install -g npm3 https://www.npmjs.com/package/npm3 npm3 install -g angular-cli@webpack worked for me...
ng new command worked without any problem....
http://stackoverflow.com/questions/38976107/angular2-need-to-create-angular2-folder-structure-using-latest-angularcli-webp/38993500#38993500
thanks a lot @neilhem feeling so happy :)
Now trying with @latest as mentioned by you..
Thanks again worked with npm@latest too...
It is unnecessary to update NPM to 3 to resolve portfinder issue.
portfinder can be installed manually in angular-cli directory after installation. Or be installed globally with npm i -g portfinder.
See also #1770.
The new webpack versions default to RC5. There will be a release soon that will make the the latest available version of angular-cli on npm, but currently they are under test.
@filipesilva I'm using the current angular-cli: 1.0.0-beta.11-webpack.2 I see many merged pull requiest resolving lot of issues such as global libraries, loadChildren... Do you have any time estimate on next angular cli release?
I need delete all my files to use the angular-cli with webpack and RC5? Or have any command to update my packages and other files?
Anyone still getting an error after deploying on github-pages?
I get error: Can't bind to 'my-item' since it isn't a known property of 'my-main-item'.
However, this works fine with ng serve. Only an issue when I deployed using "ng github-pages:deploy"
Seems like deploy to github pages runs production build command ng build -prod which breakes custom element selectors
No estimate, but as soon as we can manage it.
@prsolucoes upgrade instructions can be found in https://github.com/angular/angular-cli#webpack-preview-release-update
There is an issue with github pages deploy though, which will only be fixed in the next webpack release.
npm install --global [email protected] worked for me as @neilhem mentioned, it worked. Now its shows rc5 ( was rc.4 )when creating a new app,
"@angular/common": "2.0.0-rc.5", "@angular/compiler": "2.0.0-rc.5", "@angular/core": "2.0.0-rc.5", "@angular/forms": "0.3.0", "@angular/http": "2.0.0-rc.5", "@angular/platform-browser": "2.0.0-rc.5", "@angular/platform-browser-dynamic": "2.0.0-rc.5",
@buminda Does the github pages deploy work for you?
after reading all of the above comments, I think I will wait until it is out of beta.
It's out of RC as of last week. http://angularjs.blogspot.com.au/2016/09/angular2-final.html?m=1
Hi, I have below version
angular-cli: 1.0.0-beta.2-mobile.4 node: 5.1.0 os: win32 x64
still, new app show '2.0.0-rc.1' only. can you please tell me what is wrong?
@dhakshinait are you talking about angular or angular-cli?
@neilhem, I am talking about angular version. I have latest angular-cli but I tried to install new app using angular cli command 'ng new APPNAME', it shows '2.0.0-rc.1' in package.json and it is not installed angular app with latest version. can you please tell me what is the problem?. thanks.
In angular package.json file:
"@angular/common": "2.0.0-rc.1", "@angular/compiler": "2.0.0-rc.1", "@angular/core": "2.0.0-rc.1", "@angular/http": "2.0.0-rc.1", "@angular/platform-browser": "2.0.0-rc.1", "@angular/platform-browser-dynamic": "2.0.0-rc.1", "@angular/router": "2.0.0-rc.1", "es6-shim": "^0.35.0", "reflect-metadata": "0.1.3", "rxjs": "5.0.0-beta.6", "systemjs": "0.19.26", "zone.js": "^0.6.12"
check global version of angular-cli, not local via ng --version outside of angular-cli project
@neilhem , I have uninstalled the angular-cli and I have updated my npm, then I installed angular-cli once again below version
angular-cli: 1.0.0-beta.12-1
node: 5.1.0
os: win32 x64
now, 'ng new' create new app with below version
"@angular/common": "2.0.0-rc.7",
"@angular/compiler": "2.0.0-rc.7",
"@angular/core": "2.0.0-rc.7",
"@angular/forms": "2.0.0-rc.7",
"@angular/http": "2.0.0-rc.7",
"@angular/platform-browser": "2.0.0-rc.7",
"@angular/platform-browser-dynamic": "2.0.0-rc.7"
I hope it is latest version right now. thanks for your help.