Comments (3)
Thanks for the question! By intent, Volta does not have a single directory for globally-installed npm packages. Instead, it sandboxes each package installation. We wrote more about the reasoning and the way it works in this blog post. Additionally, while a tool like global-dirs
/global-directory
works, it is ultimately using a bunch of hard-coded heuristics to try to figure it out, as you can see by checking the source.
Depending on what you are actually trying to accomplish by querying the system for globally-installed tools, we might be able to suggest alternative approaches!
from volta.
Thanks for the question! By intent, Volta does not have a single directory for globally-installed npm packages. Instead, it sandboxes each package installation. We wrote more about the reasoning and the way it works in this blog post. Additionally, while a tool like
global-dirs
/global-directory
works, it is ultimately using a bunch of hard-coded heuristics to try to figure it out, as you can see by checking the source.Depending on what you are actually trying to accomplish by querying the system for globally-installed tools, we might be able to suggest alternative approaches!
Thanks for the answer, I think I know how my problem was solved
from volta.
Glad to hear it! Closing this accordingly!
from volta.
Related Issues (20)
- `volta list all` not work if one directory(eg. `pnpm`) not exists HOT 2
- Volta update error: Could not create directory D:\Volta but not D:
- Installing package's man pages globally HOT 5
- Generate Volta man pages
- Running Node with Volta with TMP options HOT 5
- 关于文件路径问题 (Specify installation path)
- Volta/Nuxt problems between multiple user accounts? HOT 2
- SUGGESTION: Move volta config to .voltarc or somewhere else. HOT 1
- I am install [email protected] ,but platform runtime at [email protected],why HOT 1
- volta install cocoapods HOT 2
- Unable to install TypeScript: Could not create shared environment for package 'typescript' HOT 1
- Potential fork bomb
- how to solve pnpm's problem HOT 3
- When trying to install new versions volta hangs indefinitely and uses all available network bandwidth HOT 7
- Unable to install nativescript (CLI)
- When using child_process.fork() with the execPath pointing to volta on windows ipc breaks. HOT 1
- Volta changed the toolchain action HOT 1
- mkgainet.
- uninstall failed
- Can I use it on a prodcution server with pm2? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volta.