How to install NodeJS LTS on Windows as a local user (without admin rights)

前端 未结 12 760
情深已故
情深已故 2020-12-07 09:21

I\'m using Windows as a simple user (I don\'t have any admin rights) and want to install NodeJS LTS.

On the download site I have the choice to download only the bina

相关标签:
12条回答
  • 2020-12-07 09:30

    For node portable installation in windows batch file with below command can also be created in node root directory(where node.exe file resides) which updates PATH environment variable on execution and also directly through command prompt from node root directory

    PATH %~dp0;%PATH%;
    

    ~dp0 : fetches current directory path in windows

    Hopes that Helps

    0 讨论(0)
  • 2020-12-07 09:31
    1. Download the node.js zip file from official page. https://nodejs.org/en/download/
    2. Unzip the file.
    3. Goto Edit Environment Variables For Your Account.
    4. Add new path /node-v10.14.2-win-x64\node-v10.14.2-win-x64
    5. That's it... now you have installed both node.js and npm.
    6. Use node -v and npm -v to check installation.
    0 讨论(0)
  • 2020-12-07 09:32

    Add following paths to the PATH environment variable, if you have downloaded the Node.js Windows Binary (.zip)

    1. <your os root>\node-v10.16.1-win-x64\
    2. <your os root>\node-v10.16.1-win-x64\node_modules\npm\bin\

    Then test following commands from the command prompt:

    node -v
    
    nmp -v
    
    0 讨论(0)
  • 2020-12-07 09:35

    Download the node js zip file, extract it to a folder. Then create a windows batch file to set path to node js folder(as you may not be able to set path the usual way witout admin rights). Then run your node/npm/npx commands from the same command window. You even can open Visual Studio Code from there. If you need step by step checkout this video : https://youtu.be/BLnbtsDIW_E

    0 讨论(0)
  • 2020-12-07 09:35

    Try GitHub n-install:

    curl -L https://git.io/n-install | bash -s -- -y
    
    0 讨论(0)
  • 2020-12-07 09:37

    Accepted answer from @Anothony O. didn't work for me. If got it working following these instructions and by adding the following to node\node_modules\npm\npmrc

    strict-ssl=false
    
    0 讨论(0)
提交回复
热议问题