New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ng new project isn't working #1191
Comments
Having the same error here: npm ERR! This is an error with npm itself. Please report this error at: npm ERR! A complete log of this run can be found in: And the log states as following in the last lines: 1726 http fetch GET 200 https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz 45ms |
install latest angular cli by: |
Hi all, |
same issue.. can anyone pls suggest solution? |
same problem when creating new angular project .. |
Hii.. I worked around it (after lots of debugging), guess the problem is with npm cli. I uninstalled the latest node and npm versions, and went back to node v12.4.0 and npm 6.9.0 For now everything works! (using angular/cli 9.1.3) try it. |
#1191 (comment) |
how can I get node v12.4.0 and npm 6.9.0 ? |
https://tecadmin.net/upgrade-nodejs-via-npm/ i change sudo n stable to: those worked for me |
npm install -g @angular/cli close the terminal and open it again it will work for this issue...... |
npm install -g @angular/cli close the terminal and open it again it will work for this issue...... |
npm install -g @angular/cli close the terminal and open it again it will work for this issue...... |
This does not fix the issue. There is no change after running these steps Edit: my issue is slightly different but gives the same error message of "schematic workflow failed" My issue seems to be a permissions error un-linking from the .staging directory.
|
not working |
Installing packages...npm WARN deprecated tslint@6.1.2: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information. npm ERR! Unexpected end of JSON input while parsing near '...hj3+GWoYF1z+Vc+WQ1hiz' npm ERR! A complete log of this run can be found in: |
I had the exact same error and was able to fix it through following steps.
|
didnt worked for me @Vipmat |
didnt worked for me also |
None of the above worked at all. |
None of the above solutions worked |
Use node V12.4.0 and npm V6.9.0 |
I had been facing the same issue.
Commands: This is working for me. |
This worked for me , with Node v12.16.1 and NPM 6.13.4 |
Tried to do everything suggested still could not get the result. Is this issue in Windows machine only. |
no macOS also has same issue |
not working |
my issue solved after i update Node and NPM to latest version |
worked |
worked for me |
Looks like solutions above worked for Windows .. Please anyone with solution for MacOs. I'm having this exact same problem. I have followed the above steps This doesn't work for MacOs npm ERR! A complete log of this run can be found in: |
THIS ONE IS ASLO WORKED FOR ME. |
For MACBOOK, i updated angular, Node and NPM version to latest version |
Thank you, all fixed now. restarting the PC after upgrade of Node, npm cache clean, reinstall Angular CLI worked for me |
This worked for me |
npm cache clean --force this command work for me. |
Same here. This command work for me. I just happened to get into this problem today after I reinstall my npm and my node at v14+. After the npm cache clean the version become the older version and I managed to run the ng new command. |
I faced the same issue , but got resolved with this:- npm cache clear --force may the issue was because of the error |
This solved the problem for me. my node version was 10 and I needed to upgrade it to version 12. |
I tried every recommendation. WTF |
Clearing Nmp cache worked npm cache clear --force |
how to upgrade?? which commands did u use? |
Installing packages...npm WARN deprecated tslint@6.1.3: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information. npm ERR! This is an error with npm itself. Please report this error at: npm ERR! A complete log of this run can be found in: i'm getting this error from yesterday, unable to resolve plz help. |
yeah same, if you get plz tell me also |
i am still having this problem tried everything |
Closing: we don't support project-specific support/debugging but it looks like @Vipmat & @shiva-github both provided fairly good paths to resolving this issue for most folks (ref. #1191 (comment) & #1191 (comment) respectively) If you have problems in the future w/ the Angular CLI, please file an issue over on their repo: https://github.com/angular/angular-cli If you think you've found a problem with |
i am trying to create a new angular project , it's not working and having this output :
i have node v : v13.13.0
angular v : Angular CLI: 9.1.2
npm v : '6.14.4'
\ Installing packages...npm WARN deprecated tslint@6.1.1: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.12: fsevents 1 will break on node v14+. Upgrade to fsevents 2 with massive improvements.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! Unexpected end of JSON input while parsing near '...},"4.2.1":{"name":"@A'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dell\AppData\Roaming\npm-cache_logs\2020-04-22T08_41_24_031Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.
The text was updated successfully, but these errors were encountered: