Search
Categories
Portable NodeJS without administrator access & N8N
- Tải Cmder .
- Tải
nvm-noinstall.ziptừ latest release. - giải nén các file (i.e.:
nvm.exe…) trong filenvm-noinstall.zipvào trong folderbincủa portable Cmder folder. - Di chuyển tới thư mục
bincủ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
binfolder. 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 trongbinfolder ). hoặc với n8n tôi chọn bản 18.17.0:nvm install 18.17.0 - Chờ tới khi
nodevànpmhoà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
binfolder. Runnvm use v18.17.0or your chosen node version. You can close the username and password window both times without entering anything. It should tell youNow 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.
