Skip to content

[pull] main from npm:main #75

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

Merged
merged 1 commit into from
Aug 20, 2025
Merged

[pull] main from npm:main #75

merged 1 commit into from
Aug 20, 2025

Conversation

pull[bot]
Copy link

@pull pull bot commented Aug 20, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

## Problem
I followed the instructions and got this error when running an NPM
package globally:
```
Path "/Users/me/~/.npm-global/lib/node_modules" does not exist.
Please check the NODE_PATH environment variable.
```

In `.npmrc` the prefix was set to:
```
prefix=~/.npm-global
```

`~` is not expanded here so NPM looks for a literal `~/` path instead of
the home directory.

## Solution
Use the absolute path instead:
```
prefix=/Users/me/.npm-global
```

Run `npm config` without quotes around the path so that `~` is properly
expanded.
@pull pull bot locked and limited conversation to collaborators Aug 20, 2025
@pull pull bot added the ⤵️ pull label Aug 20, 2025
@pull pull bot merged commit ca92818 into Globdeveloper:main Aug 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant