In Node 9.5.0, generating new project reports an error
See original GitHub issueJust installed Node 9.5.0 and ran the ng new hello
command. It finished with the following error:
error: could not expand include path '~/.gitcinclude'
fatal: bad config line 49 in file /usr/local/git/etc/gitconfig
Project 'hello' successfully created.
I use CLI 1.7.0, and tried using both npm and yarn as a global package manager - the same error.
After deleting node_modules in the newly generated project, both npm i and yarn install successfully complete.
Also, when using ng new hello --skip-git
, the project generation completes without errors.
Expected behavior:
The ng new hello
should complete without errors
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
I get an error when trying to install strapi - Stack Overflow
When trying to install strapi with npx create-strapi-app@latest my-project. , an error appears. Everything used to work fine, now it doesn't ...
Read more >Job can run successful without executing all script commands ...
Create a simple Node.js project with a failing example test (I used mocha). In package.json add test script so it can be called...
Read more >standard-version - npm
A utility for versioning using semver and CHANGELOG generation powered by Conventional Commits. ci NPM version codecov Conventional Commits ...
Read more >drupal 10.0.0 | Drupal.org
Install. To start a new Drupal project with version 10.0.0: composer create-project drupal/recommended-project:10.0.0 ...
Read more >Changelog - hapi.dev
Future-proof hapi for node v16, rely on res close rather than req ... Replace new Buffer() ... Auth entity error reports the wrong...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I faced the same issue like @yfain
I had to follow the steps suggested in https://stackoverflow.com/questions/36908041/git-could-not-expand-include-path-gitcinclude-fatal-bad-config-file-line
I did the changes to the gitconfig file located at /usr/local/git/etc/gitconfig
That did the trick
thanks Ram
@yfain I have the same environment but all works properly.