geerlingguy / mac-dev-playbook

Mac setup and configuration via Ansible.
Other
5.95k stars 1.76k forks source link

CI fails installing npm packages #188

Closed javydekoning closed 6 months ago

javydekoning commented 1 year ago

After installing npm and node through brew it is found at @ /usr/local/lib/node_modules or /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Aliases.

Yet, the CI keeps failing to find npm. I couldn't find a fix yet.

Even after adding these locations to $PATH, it fails:

TASK [Install global NPM packages.] ********************************************
failed: [localhost] (item={'name': 'aws-cdk'}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "aws-cdk"}, "msg": "Failed to find required executable \"npm\" in paths: /usr/local/lib/node_modules:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Aliases:/usr/local/lib/ruby/gems/3.0.0/bin:/usr/local/opt/ruby@3.0/bin:/usr/local/opt/pipx_bin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools:/Users/runner/.ghcup/bin:/Users/runner/hostedtoolcache/stack/2.11.1/x64"}
github-actions[bot] commented 8 months ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 6 months ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.