question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to create angular app via cli

See original GitHub issue

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Linux, Linux Mint 18 Sarah

Versions.

Please run ng --version. If there’s nothing outputted, please run in a Terminal: node --version and paste the result here: ng --version bash: /usr/bin/ng: No such file or directory

node --version v4.2.6

Repro steps.

Was this an app that wasn’t created using the CLI? What change did you do on your code? etc. I can’t create angular app

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.

I try create angular but I get error ng new first-app bash: /usr/bin/ng: No such file or directory

I tried fix it via $ sudo ln -s /usr/bin/nodejs /usr/bin/node ln: failed to create symbolic link ‘/usr/bin/node’: File exists but this doesn’t work

I would be happy get any help how to solve this problem.


Thanks! We’ll be in touch soon.d

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
valterbarroscommented, Jan 31, 2017

@vitalizis you can add to path of system, export PATH="$PATH:$HOME/npm/bin". To changes work better add this export in your ~/.bashrc

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating Angular App command line throws error
Open your command prompt and enter the following: npm install -g @angular/cli ng new my-app. The first command uses npm (node package ...
Read more >
ng new - Angular
Option Description Value Type Default Value ‑‑commit Initial git repository commit information. boolean true ‑‑directory The directory name to create the workspace in. string ‑‑force Force...
Read more >
How To Solve The Schematic Workflow Failed Error In Angular
Open VS Code, then go to the Terminal and click on the new terminal. Run the command “npm cache clean --force" which is...
Read more >
Identify and Fix Build and Deployment Errors in Your Angular ...
Ensure that you have installed the Angular CLI globally on your machine via npm install -g @angular/cli · Ensure that you are located...
Read more >
Unable to execute Angular CLI commands in Visual Studio ...
In this video , I am going to fix that error : Unable to execute Angular CLI commands in Visual Studio Code terminalWhen...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found