Portfolio
My Blog
Scroll down to discover
Search
Categories

Portable NodeJS without administrator access & N8N

February 16, 2025Category : Automation & AI
  • Tải Cmder .
  • Tải nvm-noinstall.zip từ latest release.
  • giải nén các file (i.e.: nvm.exe …) trong file nvm-noinstall.zip vào trong folder bin của portable Cmder folder.
  • Di chuyển tới thư mục bin của Cmder và tạo 1 file install_fix.cmd với nội dung sau

set /P NVM_PATH=”Enter the absolute path where the zip file is extracted/copied to: ”
setx NVM_HOME “%NVM_PATH%”
set NVM_SYMLINK=C:\Program Files\nodejs
setx NVM_SYMLINK “%NVM_SYMLINK%”
setx PATH “%PATH%;%NVM_PATH%;%NVM_SYMLINK%”

if exist “%SYSTEMDRIVE%\Program Files (x86)\” (
set SYS_ARCH=64
) else (
set SYS_ARCH=32
)
(echo root: %NVM_PATH% && echo path: %NVM_SYMLINK% && echo arch: %SYS_ARCH% && echo proxy: none) > %NVM_PATH%\settings.txt

  • mở một cửa sổ cmd và chạy lệnh .\install_fix.cmd
  • Khi được hỏi hãy copy full đường dẫn của bin folder. Khi thành công sẽ có 1 file setting.txt được tạo ra trong folder bin
  • Tiếp cài phiên bản nodejs muốn sử dung. có thể cài bản mới nhất với lệnh nvm install latest (một folder phiên bản nodejs sẽ được tạo trongbin folder ). hoặc với n8n tôi chọn bản 18.17.0: nvm install 18.17.0
  • Chờ tới khi nodenpm hoàn tất cài đặt.

 

  • Copy the absolute path to that folder. e.g. D:\Cmder\bin\v18.17.0.
  • Add this to your existing path in Cmder’s environment settings. e.g. set "PATH=D:\Cmder\bin\v18.7.0;%PATH%"
  • Make sure you are still inside your bin folder. Run nvm use v18.17.0 or your chosen node version. You can close the username and password window both times without entering anything. It should tell you Now using node v18.17.0 (64-bit).

Install N8N

npm install n8n –location=global
npx n8n

 

link: https://blog.kodono.info/wordpress/2022/01/01/portable-version-of-nodejs-on-windows/
https://dev.to/yougotwill/portable-nodejs-without-administrator-access-1elk

01.
© Oliver / All rights reserved.
To top