You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Locally installed CLI beta.31 is not initializing the project ('ng init' failed) #4761
alter package.json by adding "ng":"ng" in to scripts (761e86f).
install @angular/cli --save
npm run ng -- init
The log given by the failure.
c:\Projects\my-app>npm run ng -- init
> my-app@1.0.0 ng c:\Projects\my-app
> ng "init"
installing ng2
? Overwrite package.json? Yes, overwrite
c:\Projects\my-app>
changed the title [-]CLI not initializing the project without install ('ng init' failed)[/-][+]Locally installed CLI beta.31 is not initializing the project ('ng init' failed)[/+]on Feb 16, 2017
I'm afraid it doesn't matter. The command was broken in beta.31, and now it's removed in master. It won't be there in v1.0 final, and will not exist again until it's rewritten for v2.0.
So i c PR #4628 that removing init and update.
But how would you initialize a new CLI app without having CLI globally installed? It is seams to be impossible now.
Activity
[-]CLI not initializing the project without install ('ng init' failed)[/-][+]Locally installed CLI beta.31 is not initializing the project ('ng init' failed)[/+]Meligy commentedon Feb 17, 2017
Duplicate of #4653 / #4584.
kuncevic commentedon Feb 17, 2017
@Meligy Yeah i c, in my case I am initializing just fresh project having
package.jsonlike that:having just single file in my project folder which is
package.json.If it is makes any difference
Meligy commentedon Feb 17, 2017
I'm afraid it doesn't matter. The command was broken in beta.31, and now it's removed in master. It won't be there in v1.0 final, and will not exist again until it's rewritten for v2.0.
kuncevic commentedon Feb 17, 2017
So i c PR #4628 that removing
initandupdate.But how would you initialize a new CLI app without having CLI globally installed? It is seams to be impossible now.
Meligy commentedon Feb 17, 2017
At the moment you'll have to download the CLI to another folder different from the new project folder and use it.
At least until something happens with #4762 and it gets opened / superseded with something.
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.