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

Cannot use ng new to create a new project

Open bvaissade opened this issue 9 years ago • 8 comments

Please provide us with the following information:

OS?

Windows 10 (32 bits)

Versions.

@angular/cli: 1.0.0-beta.32.3
node: 7.5.0
os: win32 ia32

Repro steps.

I want to create a new project with : ng new myproject

The log given by the failure.

Impossible ! Show error

The "ng new" command requires a name argument to be specified. For more details, use "ng help".

Mention any other details that might be useful.

Try to uninstall and reinstall angular cli without succés


Thanks! We'll be in touch soon.

bvaissade avatar Feb 23 '17 09:02 bvaissade

try installing new version of nodejs and install angular-cli click this link which helped me to get latest version of nodejs https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server

rinoldit avatar Feb 23 '17 12:02 rinoldit

Thanks but my PC is on Windows 10 ! My nodejs version is 7.5.0.

bvaissade avatar Feb 23 '17 15:02 bvaissade

Hey, can you try :

ng new <name>

ArielSaldana avatar Mar 02 '17 19:03 ArielSaldana

I update to 1.0.0-rc-0 : (uninstall and clean re-install)

    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.0.0-rc.0
node: 7.5.0
os: win32 ia32

Still the same error

The "ng new" command requires a name argument to be specified. For more details, use "ng help".

Same problem with ng generate...

bvaissade avatar Mar 03 '17 07:03 bvaissade

I can't reproduce this myself:

kamik@T460p MINGW64 /D/sandbox
$ ng new myproject
installing ng
  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\assets\.gitkeep
  create src\environments\environment.prod.ts
  create src\environments\environment.ts
  create src\favicon.ico
  create src\index.html
  create src\main.ts
  create src\polyfills.ts
  create src\styles.css
  create src\test.ts
  create src\tsconfig.app.json
  create src\tsconfig.spec.json
  create src\typings.d.ts
  create .angular-cli.json
  create e2e\app.e2e-spec.ts
  create e2e\app.po.ts
  create e2e\tsconfig.e2e.json
  create .gitignore
  create karma.conf.js
  create package.json
  create protractor.conf.js
  create tsconfig.json
  create tslint.json
Successfully initialized git.
Installing packages for tooling via npm.

I have no idea why your system seems to have a problem with those commands. If you have any hint I'll try to repro.

filipesilva avatar Mar 13 '17 19:03 filipesilva

@bvaissade Are you still facing the issue? If yes please reopen the issue with more details.

sumitarora avatar May 11 '17 15:05 sumitarora

Please, somebody solucion this??

miguel-atencio-vargas avatar May 19 '18 23:05 miguel-atencio-vargas

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.