Giter Site home page Giter Site logo

1111mp / nvm-desktop Goto Github PK

View Code? Open in Web Editor NEW
547.0 5.0 26.0 1.49 MB

Node Version Manager Desktop - A desktop application to manage multiple active node.js versions.

Home Page: https://github.com/1111mp/nvm-desktop

License: MIT License

TypeScript 90.51% JavaScript 0.76% HTML 0.13% CSS 8.59%
electron node nodejs nvm version-manager nvm-desktop

nvm-desktop's Introduction

Hi there 👋

I'm The1111mp, fullstack developer with a focus on frontend. I love building utilities aimed at increasing Developer productivity 🙌

🔭 I’m currently working on Shanghai Netease

🌱 I’m currently learning Electron | Rust | Nodejs | TypeScript | C++ | Qt

💬 Ask me about Reactjs | JavaScript | TypeScript | Nodejs | Electron | Rust

📫 How to reach me: [email protected]

⚡ Hobby: write codes & walk around & cooking for my wife

📖 Blog: https://juejin.cn/user/1248673297886535


⚡ Blog posts
⚡ Recent Github Activity
  1. 🗣 Commented on #82 in 1111mp/nvm-desktop
  2. 💪 Opened PR #8 in 1111mp/nvmd-command
  3. 🗣 Commented on #81 in 1111mp/nvm-desktop
  4. 🗣 Commented on #81 in 1111mp/nvm-desktop
  5. 🗣 Commented on #80 in 1111mp/nvm-desktop
  6. 🔒 Closed issue #80 in 1111mp/nvm-desktop
  7. 🗣 Commented on #80 in 1111mp/nvm-desktop
  8. 🗣 Commented on #80 in 1111mp/nvm-desktop
  9. 🗣 Commented on #78 in 1111mp/nvm-desktop
  10. 🔓 Reopened issue #78 in 1111mp/nvm-desktop
⚡ Github Stats
⚡ Most Used Languages

nvm-desktop's People

Contributors

1111mp avatar christian-bromann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nvm-desktop's Issues

增加一个配置导入导出的功能

项目选项卡中,配置了很多项目。当我重装系统后,我需要重新手动添加项目目录,这将是会是一个很大的工作量。并且,如果在添加项目时可以支持多选就更好了。因为目前来说,项目都会存放在特定的某个大目录之下。

没法下载node14

mac下(m1) node v14.x 都不支持咋办
老项目需要14 尴尬

Unexpected Application Error!

OS:MacOS 12.5 (21G72)

Cannot destructure property 'version' of 't[0]' as it is undefined.

TypeError: Cannot destructure property 'version' of 't[0]' as it is undefined.
    at file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:1023803
    at Ei (file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:818578)
    at Es (file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:875433)
    at xc (file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:864585)
    at bc (file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:864513)
    at vc (file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:864376)
    at ic (file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:861183)
    at ac (file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:859735)
    at C (file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:919573)
    at MessagePort.P (file:///Applications/nvm-desktop.app/Contents/Resources/app.asar/dist/renderer/renderer.js:2:920105)

Error when installing "tsx" package globally

Hi!

I got an error when tried to install "tsx" package (https://github.com/privatenumber/tsx) globally.

Windows 10 Enterprise 22H2 (19045.3693)
nvm-desktop v2.6.0
node.js v20.10.0

Error log:

> npm i -g tsx

changed 5 packages in 876ms

2 packages are looking for funding
  run `npm fund` for details
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: NotFound, message: "The system cannot find the path specified. (os error 3)" }', src\common.rs:194:45
stack backtrace:
   0:     0x7ff78e2fddfc - <unknown>
   1:     0x7ff78e31bdfb - <unknown>
   2:     0x7ff78e2fa0af - <unknown>
   3:     0x7ff78e2fdbab - <unknown>
   4:     0x7ff78e30085a - <unknown>
   5:     0x7ff78e3004af - <unknown>
   6:     0x7ff78e300f0e - <unknown>
   7:     0x7ff78e300dfd - <unknown>
   8:     0x7ff78e2fea49 - <unknown>
   9:     0x7ff78e300b00 - <unknown>
  10:     0x7ff78e32a225 - <unknown>
  11:     0x7ff78e32a6c3 - <unknown>
  12:     0x7ff78e1b4785 - <unknown>
  13:     0x7ff78e194cbe - <unknown>
  14:     0x7ff78e1a9838 - <unknown>
  15:     0x7ff78e1c0481 - <unknown>
  16:     0x7ff78e1ba566 - <unknown>
  17:     0x7ff78e1bf80c - <unknown>
  18:     0x7ff78e2f3d68 - <unknown>
  19:     0x7ff78e1c058c - <unknown>
  20:     0x7ff78e3224b0 - <unknown>
  21:     0x7ffd13c77344 - BaseThreadInitThunk
  22:     0x7ffd158226b1 - RtlUserThreadStart

nvm-desktop: command not found: {lib}

This issue aims to explain why the nvm-desktop: command not found prompt message appears. Only applies to the following two situations:

  • Set the prefix option of npm. (npm config set prefix "/path/to/folder") That is the directory of the "npm" global installation package has been changed.
  • When using yarn or pnpm through corepack. (corepack enable --install-directory /path/to/folder) The directory where the executable is generated was changed via the --install-directory option.

Therefore, the error prompt of nvm-desktop: command not found in the terminal is in line with its respective default behavior. At this time, you need to manually add the /path/to/folder directory path to the system environment variable, and then terminal can be correctly identified. However, please note that when adding it to the system environment variable, you need to put the path of /path/to/folder before nvmd ($HOME/.nvmd/bin).

You can download a node version separately to test its respective default behavior without using nvm-desktop.


这个 issue 旨在解释为何出现 nvm-desktop: command not found 提示信息。 只适用于以下两种情况:

  • 设置过npmprefix选项。 (npm config set prefix "/path/to/folder") 即npm全局安装包的目录已更改。
  • 通过corepack使用yarnpnpm时。 (corepack enable --install-directory /path/to/folder) 通过 --install-directory 选项更改了可执行文件生成的目录。

终端中出现nvm-desktop: command not find的错误提示符合其各自的默认行为的。 这时需要手动将/path/to/folder目录路径添加到系统环境变量中,然后终端才能正确识别。不过请注意,在添加到系统环境变量的时候,需要将/path/to/folder的路径放在nvmd$HOME/.nvmd/bin) 之前。

你可以在不使用nvm-desktop的情况下单独下载一个node的版本到本地进行测试。当更改过npm的全局包安装路径以及通过corepack enable --install-directory /path/to/folder命令生成yarn&pnpm的可执行文件时,需要将其对应的路径添加到环境变量中之后终端才能够正确识别。

Reference:

When in global mode, executables are linked into {prefix}/bin on Unix, or directly into {prefix} on Windows. Ensure that path is in your terminal's PATH environment to run them.

Corepack is a zero-runtime-dependency Node.js script that acts as a bridge between Node.js projects and the package managers they are intended to be used with during development. In practical terms, Corepack lets you use Yarn, npm, and pnpm without having to install them.

corepack enable --install-directory /path/to/folder

Add the Corepack shims to the install directories

When run, this commmand will check whether the shims for the specified package
managers can be found with the correct values inside the install directory. If
not, or if they don't exist, they will be created.

By default it will locate the install directory by running the equivalent of
which corepack, but this can be tweaked by explicitly passing the install
directory via the --install-directory flag.

Use package.json's `engines.node` when no .nvmdrc is present

Deployed applications often specify what version of Node should be used during development and in the deployed environment by using package.json's engines.node field. It would be nice if this tool could use it when specifying a Project folder if it is present instead of adding a .nvmdrc file. Checking in an extra file to the repo, as well as having to remember to keep the node version in sync between two places is not ideal. For instance, let's say I decide my project is moving to v20.11.0. I now have to go update package.json's engines.node and the .nvmdrc file.

Also of note, engines.node can specify a range of versions. When a range is encountered, use the newest installed version within the range.

To recap, it would be nice if there were a solution to specify node versions for projects without having to commit an .nvmdrc file and have the node version specified in multiple places that could potentially get out of sync.

Not all files are removed when uninstalling

Hi!

I tried to uninstall nvm-desktop, and it seems not all files were removed.

These files were still present after uninstall:

C:\Users\User\AppData\Roaming\NVM-Desktop
C:\Users\User\AppData\Local\Programs\nvm-desktop
C:\Users\User\.nvmd

Also, it seems that C:\Users\User\.nvmd wasn't automatically removed from PATH variable, so nvmd still handles commands even after uninstall.

> node --version
nvm-desktop: command not found: node

UPDATE:
After I tried to remove these folders manually, I found out that nvm-desktop was still actually running in background.
Maybe that's why these files were not removed. Probably we need to kill active processes in uninstall process.
Also it seems that it allows to run multiple instances at once, and they all hide in system tray, that was one of the reasons why I didn't notice it at first time.

页面样式有点问题

image
路径文本展示不全

另外,这下图右边俩按钮是就是这样设计小一号的嘛
image

不好生意,做前端测试多了,感觉有点怪
但是总体来说,99分

Win11 23H2无法使用nvm desktop问题

微信截图_20240106094737

上面是我的设备版本号截图

下载的是以下三个版本:
微信截图_20240106094846

但是双击打开都是无反应的,重启电脑不行,软件兼容性疑难解答使用后可以安装。

安装后双击程序exe程序也是无反应,托盘和界面什么都没有,也无报错

我使用Win10 2016 LTSC就可以安装运行,使用Win10 21H2和Win11 23H2均无效,无法打开

Win11 23H2安装最新版无反应,安装nvm desktop v2.5.0安装可以弹出安装窗口,安装后还是无法运行程序

是需要安装什么运行库吗?挺喜欢这个程序的,但是兼容性感觉好差啊

How to set node versions bin PATH

node version: v16.20.2(currently)
hope: $HOME/.nvmd/versions/16.20.2/bin

switch node version: v18.18.2
hope: $HOME/.nvmd/versions/18.18.2/bin

The global npm package command cannot be used

I checked with npm list -g --depth 0 to see that the node version is correct, and also installed the global packages I want, but none of the global commands for those packages work. Did I do something wrong?
image
image


I'm using Windows 11 22H2 22621.2361.
node is node 18.18.0 downloaded using nvm-desktop

Errors building on Arch Linux

Hello,

I have just tried building this project, unfortunately I am met with an error:

error during build:
Error: [vite]: Rollup failed to resolve import "intro.js" from "/home/AUR/nvm-desktop/src/nvm-desktop.git/node_modules/intro.js-react/dist/esm/components/Steps/index.mjs".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
    at viteWarn (file:///home/AUR/nvm-desktop/src/nvm-desktop.git/node_modules/vite/dist/node/chunks/dep-nGG-_oRu.js:67037:27)
    at onwarn (file:///home/AUR/nvm-desktop/src/nvm-desktop.git/node_modules/@vitejs/plugin-react/dist/index.mjs:250:9)
    at onRollupWarning (file:///home/AUR/nvm-desktop/src/nvm-desktop.git/node_modules/vite/dist/node/chunks/dep-nGG-_oRu.js:67062:9)
    at onwarn (file:///home/AUR/nvm-desktop/src/nvm-desktop.git/node_modules/vite/dist/node/chunks/dep-nGG-_oRu.js:66776:13)
    at file:///home/AUR/nvm-desktop/src/nvm-desktop.git/node_modules/rollup/dist/es/shared/node-entry.js:17420:13
    at Object.logger [as onLog] (file:///home/AUR/nvm-desktop/src/nvm-desktop.git/node_modules/rollup/dist/es/shared/node-entry.js:19078:9)
    at ModuleLoader.handleInvalidResolvedId (file:///home/AUR/nvm-desktop/src/nvm-desktop.git/node_modules/rollup/dist/es/shared/node-entry.js:18024:26)
    at file:///home/AUR/nvm-desktop/src/nvm-desktop.git/node_modules/rollup/dist/es/shared/node-entry.js:17982:26

This can be fixed by adding 'intro.js' to the package.json. After running 'yarn add intro.js' the build was successful.

与已安装的nvm 结合

能否与原来已经安装的nvm 配合,使用nvm-desktop 是不是要先卸载已安装的nvm

终端中执行正常,vscode,wenstrom中运行不存在

nvmd的环境变量在我放在了系统变量里。
image

开发者你好,我使用的Win11系统,目前碰到的问题是,在终端执行nvmd -h node -v等命令都正常,在vscode中的终端执行却报错命令不存在,但是使用管理员模式后可以正常执行。这个问题应该如何解决,我看其他issue好像没有类似的解决方案。

系统终端

image

vscode

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.