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

Update angular-cli with npm install --global [email protected] and check cli version with ng --version, then run ng new

neilhem avatar Aug 11 '16 08:08 neilhem

@neilhem ah webpack.2 is RC5 :)

masaanli avatar Aug 11 '16 09:08 masaanli

Yup, that's working, but it should be part of the default npm install angular-cli command.

wtfuii avatar Aug 11 '16 12:08 wtfuii

I think that's because it's in beta @wtfuii

rickysullivan avatar Aug 11 '16 12:08 rickysullivan

@wtfuii Yeah, once the webpack build is out of beta, it will become the default.

aciccarello avatar Aug 11 '16 13:08 aciccarello

I've always found this a bit confusing, though by always I mean, for the last months. CLI itself is beta. But it seems like for now the webpack variant, which is obviously the primary development path (it is in master, it is not even a branch anymore) is a kind of "beta of a beta". So are we waiting for the webpack variant to be out of "beta beta", so it can become CLI beta.12 or whatever? Or are we going to be stuck with this install "@webpack" all the way until CLI itself is out of beta?

kylecordes avatar Aug 11 '16 14:08 kylecordes

I agree that the beta of a beta terminology it is confusing, I should have described it differently. My understanding of the team's intentions is that the webpack version will become the default within a release or two. Because it's a big change they wanted some extra testing.

aciccarello avatar Aug 11 '16 15:08 aciccarello

So, what's the ETA for RC5 to be default?

steven-fernandez avatar Aug 13 '16 10:08 steven-fernandez

FYI, I had to npm uninstall -g angular-cli prior to running the above command to avoid errors.

ibnzbssrckr avatar Aug 14 '16 15:08 ibnzbssrckr

Hi Guys, sorry for the dump question. Does the command [email protected], mean that Angular Cli will get the package from another source, or it is a new version of Angular Cli itself?

UPDATE

  • I just found my answer here https://github.com/angular/angular-cli/blob/master/CHANGELOG.md.

tiagomatosweb avatar Aug 15 '16 22:08 tiagomatosweb

I have unstalled old angular cli and cleaned npm cache and then installed the above mentioned version npm install --global [email protected] . But unable to run ng new command it is throwing error saying that cannot find module 'portfinder' any help?

SenthilKumaranC avatar Aug 16 '16 09:08 SenthilKumaranC

@SenthilKumaranC try repeat installing again & check that you use node 4+

neilhem avatar Aug 16 '16 11:08 neilhem

@neilhem Yes I am using Node 4+ only. I have tried again, but still not working

SenthilKumaranC avatar Aug 16 '16 11:08 SenthilKumaranC

Actually during installation itself there are some errors, Do I need to install any specific version of typescript and how to install it?

image

SenthilKumaranC avatar Aug 16 '16 11:08 SenthilKumaranC

Have you tried to uninstall global angular-cli with npm uninstall -g angular-cli? Recommend posting question in stackoverflow

neilhem avatar Aug 16 '16 11:08 neilhem

Yes. I have used that command only. Also i have used npm cache clean

SenthilKumaranC avatar Aug 16 '16 12:08 SenthilKumaranC

Uninstall , Cache Clean , Initiate installation

image

Errors during Installation

image

Error during ng new command

image

SenthilKumaranC avatar Aug 16 '16 12:08 SenthilKumaranC

I installed

npm install --global [email protected]

to have rc.5 but is it normal when I tried to build it into dist folder, or when I tried to do ng serve

I have no /dist folder of my app to production?

elvisbegovic avatar Aug 16 '16 14:08 elvisbegovic

@SenthilKumaranC, make sure you have npm v3 installed. I had the same issue with npm v2.x

mattheffernan avatar Aug 16 '16 21:08 mattheffernan

I am trying to upgrade to npm3... here also i am getting the same error...

image

SenthilKumaranC avatar Aug 17 '16 07:08 SenthilKumaranC