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

NPM warning for npmrc entry #27

Closed
wallzero opened this issue Jan 19, 2023 · 4 comments
Closed

NPM warning for npmrc entry #27

wallzero opened this issue Jan 19, 2023 · 4 comments

Comments

@wallzero
Copy link

When using NPM I receive the following warning:

npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
npm WARN config location in the cache, and they are managed by
npm WARN config     [`cacache`](http://npm.im/cacache).

It is possible to remove the tmp line from ~/.var/app/com.vscodium.codium/config/npmrc but not from the Flatpak's read-only /app/etc/npmrc.

The warning does cause some issues with command line utilities executed by npm. Would it be possible to remove the line in thie Flatpak's /app/etc/npmrc or is this an upstream issue?

@gasinvein
Copy link
Member

In what app did you find /app/etc/npmrc?

@wallzero
Copy link
Author

com.vscodium.codium but I thought /app/etc/npmrc was placed by using FLATPAK_ENABLE_SDK_EXT=node18. Is that wrong?

@gasinvein
Copy link
Member

FLATPAK_ENABLE_SDK_EXT=node18 env var is evaluated by the wrapper at run time and it can't add files to /app or /usr. And /app/etc/npmrc really shouldn't be there.

@wallzero
Copy link
Author

Understood. I think I found the culprit too. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants