Skip to content
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

bug: An error occurred while running subprocess npm. ( npm i exited with exit code 1 ). #29108

Closed
3 tasks done
edocbuhtig opened this issue Mar 2, 2024 · 5 comments
Closed
3 tasks done
Assignees
Labels

Comments

@edocbuhtig
Copy link

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

Cannot create a new ionic v7.x blank angular standalone starter app with CLI 7.2.0

Expected Behavior

Should be able to create a blank starter app using ionic cli, after upgrading ionic CLI 7.2.0

Steps to Reproduce

1.$ionic start
2. Framework: Angular
3. ? Starter template: blank
4. Standalone
5. Downloading and extracting blank starter in 638.11ms
6. > npm i --save -E @capacitor/core@latest
7. npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 7.2.0

Utility:

cordova-res (update available: 0.15.4) : 0.15.3
native-run (update available: 2.0.1) : 1.7.2

System:

NodeJS : v20.11.1
npm : 10.2.4
OS : macOS Monterey

Additional Information

No response

@mapsandapps
Copy link
Contributor

Hi, I've created a new starter app just now using Ionic CLI 7.2.0, and I'm not experiencing any problems. I'm thinking there might have been a temporary outage somewhere preventing you from installing packages. Could you please try again and let me know if you're still unable to create a starter app?

@mapsandapps mapsandapps added the needs: reply the issue needs a response from the user label Mar 4, 2024
@ionitron-bot ionitron-bot bot removed the triage label Mar 4, 2024
@edocbuhtig
Copy link
Author

@mapsandapps I am still experiencing the same error

[ERROR] An error occurred while running subprocess npm.

    npm i exited with exit code 1.

``

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Mar 10, 2024
@edocbuhtig
Copy link
Author

For any one else facing similar issue, After spending hours, Temp Solution/hack that worked for me on MAC OS though the release : 7.2.0 is still buggy
hope this is fixed in version 8.0
sudo chown -R 501:20 "/Users/xyz/.npm"

@mapsandapps
Copy link
Contributor

I'm glad you found a workaround. I'm going to close this as this connection/response error issue is not related to Ionic Framework.

@mapsandapps mapsandapps closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2024
Copy link

ionitron-bot bot commented Apr 11, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants