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.

Error creating new ng app

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Node: 9.5.0 NPM: 5.6.0 Angular CLI: 6.2.1 OS: Windows 10 x64

Repro steps

ng new my-app

The log given by the failure

C:\Users\User\Desktop\hometask_ui>ng new my-app CREATE my-app/angular.json (3544 bytes) CREATE my-app/package.json (1312 bytes) CREATE my-app/README.md (1022 bytes) CREATE my-app/tsconfig.json (408 bytes) CREATE my-app/tslint.json (2837 bytes) CREATE my-app/.editorconfig (245 bytes) CREATE my-app/.gitignore (503 bytes) CREATE my-app/src/favicon.ico (5430 bytes) CREATE my-app/src/index.html (292 bytes) CREATE my-app/src/main.ts (371 bytes) CREATE my-app/src/polyfills.ts (3194 bytes) CREATE my-app/src/test.ts (642 bytes) CREATE my-app/src/styles.css (80 bytes) CREATE my-app/src/browserslist (388 bytes) CREATE my-app/src/karma.conf.js (964 bytes) CREATE my-app/src/tsconfig.app.json (166 bytes) CREATE my-app/src/tsconfig.spec.json (256 bytes) CREATE my-app/src/tslint.json (314 bytes) CREATE my-app/src/assets/.gitkeep (0 bytes) CREATE my-app/src/environments/environment.prod.ts (51 bytes) CREATE my-app/src/environments/environment.ts (662 bytes) CREATE my-app/src/app/app.module.ts (314 bytes) CREATE my-app/src/app/app.component.html (1141 bytes) CREATE my-app/src/app/app.component.spec.ts (995 bytes) CREATE my-app/src/app/app.component.ts (210 bytes) CREATE my-app/src/app/app.component.css (0 bytes) CREATE my-app/e2e/protractor.conf.js (752 bytes) CREATE my-app/e2e/tsconfig.e2e.json (213 bytes) CREATE my-app/e2e/src/app.e2e-spec.ts (302 bytes) CREATE my-app/e2e/src/app.po.ts (208 bytes) npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2018-09-10T19_50_20_853Z-debug.log Package install failed, see above.

debug.log: 3415 http fetch GET 404 https://registry.npmjs.org/@xtuc%2Flong 877ms 3416 silly fetchPackageMetaData error for @xtuc/long@4.2.1 404 Not Found: @xtuc/long@4.2.1 3417 verbose stack RangeError: Maximum call stack size exceeded 3418 verbose cwd C:\Users\User\Desktop\hometask_ui\my-app 3419 verbose Windows_NT 10.0.14393 3420 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “–quiet” 3421 verbose node v9.5.0 3422 verbose npm v5.6.0 3423 error Maximum call stack size exceeded 3424 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

15reactions
babysnakescommented, Sep 15, 2018

Just in case it helps, I encountered the same error trying to pull @xtuc/long@4.2.1 (as a dependency of different package) and it turned out I had ~/.npmrc file that had some settings to use artifactory which for some reason interfered with pulling this package. renaming this file solved the issue (although it’s not a permanent solution… )

3reactions
fzxtcommented, Nov 14, 2018

@raDiesle Clearing ~/.npmrc completely fixed it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error while creating new project with Angular-cli - Stack Overflow
When I am trying to create new project by using the command, ng new project-name, I am getting error like below:.
Read more >
ERROR WHILE CREATING NEW APP BY 'ng new' #13170
This seems like a problem with your node/npm and not with Angular CLI. Please have a look at the fixing npm permissions page,...
Read more >
Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >
How to Solve the Angular NPM Error - C# Corner
The error in NPM, 'error package install failed, see above', can occur when the user creates a new project in Angular using Node.js...
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 >

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