Closed
Description
As per this pull request 761e86f CLI should be able to run without global install.
There was no issues with that until beta.31
OS?
Windows 7
Versions.
My project local CLI, npm run ng -- -v
:
@angular/cli: 1.0.0-beta.31
node: 6.9.2
os: win32 x64
@angular/cli: 1.0.0-beta.31
Repro steps.
npm init -y
- 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
> [email protected] ng c:\Projects\my-app
> ng "init"
installing ng2
? Overwrite package.json? Yes, overwrite
c:\Projects\my-app>
Expected
installing ng2
? Overwrite package.json? Yes, overwrite
create .editorconfig
create README.md
create src\app\app.component.css
create src\app\app.component.html
create src\app\app.component.spec.ts
create src\app\app.component.ts
create src\app\app.module.ts
create src\environments\environment.prod.ts
create src\environments\environment.ts
create src\index.html
create src\main.ts
create src\polyfills.ts
create src\styles.css
create src\test.ts
create src\tsconfig.json
create angular-cli.json
create e2e\app.e2e-spec.ts
create e2e\app.po.ts
create e2e\tsconfig.json
create .gitignore
create karma.conf.js
overwrite package.json
create protractor.conf.js
create tslint.json
Successfully initialized git.
Installing packages for tooling via npm.
Mention any other details that might be useful.
Working with locally installed beta.30 and below.
p.s:
Also I tried to run npm run ng -- update
as per this PR 2211172 but having exactly same thing happening.
Metadata
Metadata
Assignees
Labels
No labels