Comments (6)
I just added Windows support in 2.0.1. 👋
from nvm.fish.
@Skehmatics Haha, you did the right thing. How can I get started working on this?
from nvm.fish.
To get the binaries, setting OS to win when detecting uname -s
starting with MSYS_NT
, as well as handling that the archive type will be .zip or .7z (modern tar can still extract these) rather than the hardcoded .tar.gz will be enough (see PR #96 )
I'm not sure how adding the binaries to the path works, however. We'll have node.exe (which will be aliased to just node
by msys) and npm (no .exe for this one, apparently)
from nvm.fish.
Oh, duh, the other archives have the binaries in /bin, while the windows ones are just scattered about.
from nvm.fish.
Hey @jorgebucaran
So just spent quite a bit of time debugging some stuff.
First is the switch
check for the $os
won't catch the proper case as you pipe it through string lower
and the case check is in caps.
Second it doesn't seem like gzip is a big fan of .zip
files if they have more than one file in them. See: https://superuser.com/questions/1237854/gzip-stdin-has-more-than-one-entry-rest-ignored-and-gzip-tmp-gz-has-more-t
On top of that the structure of the zip file isn't the same as other OSs... you'll get npm
is actually in node_modules/npm
not at the root of the directory like node
so when you nvm use
it tries to find the package.json
at $v/bin/npm/package.json
when it is actually at $v/bin/node_modules/npm/package.json
.
It's all a mess... I have to dip for now. But wanted to at least put this all down before heading out.
from nvm.fish.
@RayBenefield I added Windows support a few weeks ago. Are you saying it isn't working for you?
from nvm.fish.
Related Issues (20)
- support for man pages HOT 5
- Node is unavailable in new shells HOT 11
- nvim + nvm configuration HOT 5
- Doesn't get installed with fisher HOT 2
- `nvm alias` HOT 5
- download url wrong when `nvm_arch=x64-musl` HOT 2
- nvm install-latest-npm equivalent HOT 4
- Does not handle env variables at startup in VSCode environment (OSX) HOT 20
- install command can fail if run at the same time in multiple terminals HOT 7
- lsr(list-remote), install give me error and list(ls) give me nothing HOT 11
- getting error on line 225 in nvm.fish using fish shell v3.4 & 3.6 HOT 3
- Add nvm exec and nvm run commands HOT 10
- Need to reinstall node on session restart HOT 2
- macOS / brew: After "nvm use default", still node from brew is on path HOT 27
- nvm-exec script HOT 3
- .nvmrc regex too strict HOT 1
- $nvm_default_version not working HOT 2
- note to self - persist across shells
- node is inaccessible until I run nvm use ... HOT 4
- Did nvm.fish compatible with bash version? HOT 5
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 nvm.fish.