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

I don't want to create the .npm directry at ~ ,How can I do that? #5883

Closed
2 tasks done
maozhitao12450 opened this issue Nov 22, 2022 · 3 comments
Closed
2 tasks done
Labels
Documentation documentation related issue Needs Triage needs review for next steps

Comments

@maozhitao12450
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Enhancement, not another kind of Docs Enhancement.

  • This is a CLI Docs Enhancement.

Description of Problem

npm WARN install Usage of the --dev option is deprecated. Use --also=dev instead.
npm ERR! code EROFS
npm ERR! syscall mkdir
npm ERR! path /root/.npm
npm ERR! errno -30
npm ERR! rofs EROFS: read-only file system, mkdir '/root/.npm'
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.

Potential Solution

No response

Docs URL

No response

@maozhitao12450 maozhitao12450 added Documentation documentation related issue Needs Triage needs review for next steps labels Nov 22, 2022
@matthiaz
Copy link

What version of node/npm is this?
This seems awfully similar to #5183

@fritzy
Copy link
Contributor

fritzy commented Nov 22, 2022

Please use the issue template, and the latest version. We've improved the behavior in v9.

@fritzy fritzy closed this as completed Nov 22, 2022
@matthiaz
Copy link

Try setting the npm_config_cache to /tmp

That should work

$ > npm_config_cache=/tmp/ npm --version ; echo $?
8.11.0
0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation documentation related issue Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

3 participants