Title: CLI can't find global packages or npm. Maybe wrong path config? · Issue #4599 · ionic-team/ionic-cli · GitHub
Open Graph Title: CLI can't find global packages or npm. Maybe wrong path config? · Issue #4599 · ionic-team/ionic-cli
X Title: CLI can't find global packages or npm. Maybe wrong path config? · Issue #4599 · ionic-team/ionic-cli
Description: Description: Hello there, I'm currently trying to set up my dev environment on macOS Catalina 15.15.7. My problem is that the ionic cli seems to ignore the paths of my angular cli. Everytime I try to execute the ionic serve command, the ...
Open Graph Description: Description: Hello there, I'm currently trying to set up my dev environment on macOS Catalina 15.15.7. My problem is that the ionic cli seems to ignore the paths of my angular cli. Everytime I try ...
X Description: Description: Hello there, I'm currently trying to set up my dev environment on macOS Catalina 15.15.7. My problem is that the ionic cli seems to ignore the paths of my angular cli. Everytime I ...
Opengraph URL: https://github.com/ionic-team/ionic-cli/issues/4599
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CLI can't find global packages or npm. Maybe wrong path config?","articleBody":"**Description:**\r\nHello there, \r\nI'm currently trying to set up my dev environment on macOS Catalina 15.15.7. My problem is that the ionic cli\r\nseems to ignore the paths of my angular cli. \r\nEverytime I try to execute the `ionic serve` command, the cli wants me to install the angular cli because it can't find the ng command. When I try to install it it throws an exception as it can't find the `npm` command also.\r\n\r\n\r\n**Steps to Reproduce:**\r\n1. Install the latest version of nvm via the zsh on macOS\r\n2. Install node version 14.15.0 (latest LTS)\r\n3. Validate the node installation\r\n4. Install @angular/cli via npm globally `npm install -g @angular/cli`\r\n5. Validate @angular/cli using `ng --version` - Version 10.1.7\r\n6. Install @ionic/cli via npm globally `npm install -g @ionic/cli`\r\n7. Validate @ionic/cli using `ionic --version` - Version 6.12.1\r\n8. Navigate to Ionic workspace root\r\n9. Install all dependencies using `npm install -r`\r\n10. Start Ionic/Angular dev server using `ionic serve --project=\u003cproject-name>`\r\n11. Ionic wants me to install the angular cli as it cannot find the `ng` command\r\n12. When I try to install it, Ionic is also unable to find the `npm` command\r\n13. ¯\\\\_(ツ)_/¯\r\n\r\n\r\n**My `ionic info`:**\r\n```\r\nIonic:\r\n\r\n Ionic CLI : 6.12.1 (/Users/psn_local/.nvm/versions/node/v14.15.0/lib/node_modules/@ionic/cli)\r\n Ionic Framework : @ionic/angular 5.4.1 (/Users/psn_local/development/git/project-api/Clients/node_modules/@ionic/angular)\r\n @angular-devkit/build-angular : 0.1001.7 (/Users/psn_local/development/git/project-api/Clients/node_modules/@angular-devkit/build-angular)\r\n @angular-devkit/schematics : 10.1.7 (/Users/psn_local/development/git/project-api/Clients/node_modules/@angular-devkit/schematics)\r\n @angular/cli : 10.1.7 (/Users/psn_local/development/git/project-api/Clients/node_modules/@angular/cli)\r\n @ionic/angular-toolkit : 2.3.3 (/Users/psn_local/development/git/project-api/Clients/node_modules/@ionic/angular-toolkit)\r\n\r\nUtility:\r\n\r\n cordova-res : not installed\r\n native-run : not installed\r\n\r\nSystem:\r\n\r\n NodeJS : v14.15.0 (/Users/psn_local/.nvm/versions/node/v14.15.0/bin/node)\r\n npm : 6.14.8\r\n OS : macOS Catalina\r\n```\r\n\r\n\r\n**Other Information:**\r\n*Things I already tried*\r\n1. Installation as another user\r\n2. Installation of Node via the installer from the official website\r\n3. Installation of Node via Homebrew\r\n4. Installation of Node via nvm\r\n5. Using of pnpm for global and local packages (with updated configs of ionic and ng)\r\n6. Setting an alias for the ng command like [here](https://github.com/angular/angular-cli/issues/503#issuecomment-213455646)\r\n7. Manually adding PATHS to the .zshrc file of the user\r\n","author":{"url":"https://github.com/PhilippSonntagORGADATA","@type":"Person","name":"PhilippSonntagORGADATA"},"datePublished":"2020-10-30T09:08:40Z","url":"https://github.com/ionic-team/ionic-cli/issues/4599"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:60d2158d-1d64-5583-e3f4-6e19d9d6f26d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB54:321110:444A1C:605434:6B047070 |
| html-safe-nonce | 975637ffc320e0c0308afea3f6a6a62eb5c3118478a2ee8732e585daff9ab135 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjU0OjMyMTExMDo0NDRBMUM6NjA1NDM0OjZCMDQ3MDcwIiwidmlzaXRvcl9pZCI6IjMyMzAyNTg2MTg5NDc2MjkxNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1ddd935b1126921318db06bb0ff2a4569f83b29b729e653d1ae3d9c3a91fbd06 |
| hovercard-subject-tag | issue:733006634 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ionic-team/ionic-cli/4599/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68f9a31e99685284b62190f7b63b42500eba7b506f8d8091b343f100036c1dbe/ionic-team/ionic-cli/issues/4599 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68f9a31e99685284b62190f7b63b42500eba7b506f8d8091b343f100036c1dbe/ionic-team/ionic-cli/issues/4599 |
| og:image:alt | Description: Hello there, I'm currently trying to set up my dev environment on macOS Catalina 15.15.7. My problem is that the ionic cli seems to ignore the paths of my angular cli. Everytime I try ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PhilippSonntagORGADATA |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/ionic-team/ionic-cli git https://github.com/ionic-team/ionic-cli.git |
| octolytics-dimension-user_id | 3171503 |
| octolytics-dimension-user_login | ionic-team |
| octolytics-dimension-repository_id | 14562056 |
| octolytics-dimension-repository_nwo | ionic-team/ionic-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14562056 |
| octolytics-dimension-repository_network_root_nwo | ionic-team/ionic-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width