angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Make "ng new" use RC5

Open wtfuii opened this issue 10 years ago • 44 comments

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

wtfuii avatar Aug 11 '16 08:08 wtfuii

@SenthilKumaranC you do it wrong, the right way npm i -g npm@latest.

neilhem avatar Aug 17 '16 09:08 neilhem

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..

SenthilKumaranC avatar Aug 17 '16 09:08 SenthilKumaranC

Thanks again worked with npm@latest too...

SenthilKumaranC avatar Aug 17 '16 10:08 SenthilKumaranC

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.

bisubus avatar Aug 19 '16 23:08 bisubus

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 avatar Aug 23 '16 02:08 filipesilva

@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?

aggarwalankush avatar Aug 23 '16 05:08 aggarwalankush

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?

paulocoutinhox avatar Aug 23 '16 12:08 paulocoutinhox

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"

srivasrk avatar Aug 23 '16 12:08 srivasrk

Seems like deploy to github pages runs production build command ng build -prod which breakes custom element selectors

neilhem avatar Aug 23 '16 14:08 neilhem

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.

filipesilva avatar Aug 23 '16 19:08 filipesilva

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 avatar Aug 30 '16 12:08 buminda

@buminda Does the github pages deploy work for you?

ghapsara avatar Aug 30 '16 13:08 ghapsara

after reading all of the above comments, I think I will wait until it is out of beta.

wlafrance avatar Sep 28 '16 15:09 wlafrance

It's out of RC as of last week. http://angularjs.blogspot.com.au/2016/09/angular2-final.html?m=1

rickysullivan avatar Sep 28 '16 21:09 rickysullivan

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 avatar Oct 06 '16 16:10 dhakshinait

@dhakshinait are you talking about angular or angular-cli?

neilhem avatar Oct 06 '16 16:10 neilhem

@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.

dhakshinait avatar Oct 06 '16 16:10 dhakshinait

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"

dhakshinait avatar Oct 06 '16 16:10 dhakshinait

check global version of angular-cli, not local via ng --version outside of angular-cli project

neilhem avatar Oct 06 '16 17:10 neilhem

@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.

dhakshinait avatar Oct 07 '16 07:10 dhakshinait