Skip to content

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

License

Notifications You must be signed in to change notification settings

jbone123/nvm-desktop

 
 

Repository files navigation

Node Version Manager Desktop

nvm-desktop is a desktop application to manage multiple active node.js versions. With this applications, you can quickly install and use different versions of node.

This project was inspired by nvm

Screenshot

image image

Install

Download

You can download the source code and build it yourself, or download the built version from following links:

The automatic update function of the application is currently only supported on the Windows platform. If you are a macOS user please always check the latest version for the best experience.

Develop and Build

Development

  • Make sure your computer has Node.js installed
  • Change to the folder ./, run npm install or yarn install to install dependented libraries

There are two ways to start the development server:

  • run npm run start or yarn start
  • F5 one-button start (debug mode)

Build and Package

  • It is recommended to use electron-builder for packaging
  • Go to the ./ folder
  • Run npm run package or yarn run package, if everything goes well, the packaged files will be in the ./release/build folder.

Please check .yarnrc file for the correct mirror address of the installation dependencies

Automated Test

  1. First you should build the binary startup files for testing via npm run package:test or yarn package:test
  2. Then run npm run test or yarn test to start automated testing

Automated testing framework: WebdriverIO

About the Electron Testing can view documents: wdio-electron-service

Todo

  • Support English & Simplified Chinese
  • Support for custom download mirrors (default is https://nodejs.org/dist)
  • Support automatic update on Windows.
  • Complete automated testing.

On Windows

After installing and starting the application, an environment variable named NVMD will be added to your computer system, default value is empty. And it has been added to the environment variable PATH.

Set by: setx -m NVMD empty.

After you install and apply the specified version of node, the value of the environment variable NVMD is set to the installation path of the node version.

Set by: setx -m NVMD nodePath.

Don't forget to restart your terminal.

If you encounter problems during use, please check whether the environment variables in the operating system are valid. Of course, your issue is also very welcome.

MacOS issues

Because there is no Apple developer account, automatic updates cannot be used on the MacOS platform. Please always check the latest version for the best experience.

"File/App is damaged and cannot be opened. You should move it to Trash."

Fix 'File/App is damaged and cannot be opened' on Mac

It is a Mac error that can occur to various macOS versions, such as macOS Ventura/Monterey/Big Sur/Catalina, especially on M1 Macs. It usually happens on apps or files downloaded from the web, but it can also arise when opening apps downloaded from App Store.

To fix "File/App is damaged and can't be opened" on Ventura or other macOS versions, you need to decide whether you want to keep the offending file or app.

If you are experiencing "App is damaged and cannot be opened" on macOS Ventura, do the following steps to fix it:

  1. Open the Apple menu > System Settings.
  2. Select Privacy & Security > Developer Tools.
  3. Click the ( + ) button and navigate to the folder where the damaged app resides. WeChat68ceaf51af50a705d1cf9536d07cd2d3
  4. Select the app and click Open.

If you are encountering "Application is damaged and cannot be opened" on Big Sur/Monterey/Catalina when opening an app, try these steps:

  1. Open the Apple menu > System Preferences.
  2. Select Security & Privacy.
  3. Tap the yellow lock and enter your password to unlock the preference pane.
  4. Click "Open Anyway." image

Temporarily disable Gatekeeper

Since the "App/File is damaged and cannot be opened" error is sent by Mac's security measures, you can temporarily turn off Gatekeeper to fix it. But it's recommended to re-enable it after using the software to protect your Mac.

Here's how to open damaged apps on Mac:

  1. Launch Terminal from the Applications folder.
  2. Copy and paste the following command into Terminal and hit Enter.
    sudo spctl –master-disable
    
  3. Enter your admin password and hit Enter. (The password won't appear on the screen.)
  4. Check the status of Gatekeeper by typing in the following command and pressing Enter.
spctl --status
  1. Open the damaged app.

If you want to enable Gatekeeper again, you can repeat the above process but replace the command in step 2 with sudo spctl –master-enable.

Remove the extended attributes of the damaged file or app

Another way to fix "App/File is damaged and cannot be opened" on M1 or Intel Mac is to remove the quarantine attributes signed to the file or app you are having issue opening.

  1. Open Terminal from the Applications folder.
  2. Type in the following command and hit Enter.
xattr -d com.apple.quarantine file_path

To execute this command, first copy and paste xattr -d com.apple.quarantine to Terminal, then drag and drop the file or app to Terminal and hit Enter. WeChatae77aab16d6d535b0b106128de0736f3

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.0%
  • JavaScript 3.9%
  • SCSS 1.9%
  • EJS 0.2%