Comments (4)
That depends on how you've configured npm.
Without explicit root
or binroot
configurations, npm defaults to installing things relative to the location of the node binary being used. So, if you do nave use 0.2.4
, then it'll create a sub folder where node v0.2.4 is the first thing in the path, and that's what will be used when you do npm install foo
.
However, if you do npm config set root /some/where/else
, then that will be used in all nave shells.
from nave.
What happens when we need different versions of npm based on the version of node we are using. For instance, I have node 0.6.7 installed as my main node (outside of nave) and npm 1.1.0-beta-10. When I nave use 0.4.7
and then try to use npm, I get this error:
Error: npm doesn't work with node v0.4.7
Required: [email protected] || 0.7 || 0.8`
Any guidance on how to deal with this issue?
from nave.
Just use the curl http://npmjs.org/install.sh | sh
in the nave env, and it'll get the proper version, and by default install in the nave folder alongside that version of node.
from nave.
@isaacs that worked, thanks!
from nave.
Related Issues (20)
- shasum mismatch HOT 2
- shasum file in cache broken HOT 2
- Use the tab delimited file in the node dist folder instead of parsing html
- How to delete a named environment HOT 2
- How would I use environment variables from the parent shell? HOT 1
- Nave strips off `-n` from arguments
- Auto fails using fish as nave_run executed with exec HOT 1
- macOS install with brew HOT 1
- Named version does not link npx
- Unable to install any node with nave on Windows 10. HOT 1
- unsupported ARM architecture HOT 1
- Fallback to .nvmrc if .naverc isn't specified for nave auto HOT 4
- Q: Can I control where the node versions are installed? HOT 2
- This repository is huge. What is the universal recommended way to install only the files needed to run nave? HOT 2
- Is it possible to define environment variables, or specify a shell script to be sourced, per environment? HOT 12
- Cannot retrieve unmodified argument to `nave use` from environment HOT 8
- global module location HOT 3
- nave strips front of $PATH
- ERROR: syntax error: operand expected (error token is "- ") HOT 6
- nave ls-remote returns empty, nave install node fails HOT 2
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 nave.