10 – طريقة تثبيت n8n Self-Hosted عبر npm وكيفية إبقاء الحزم محدثة دائمًا

Share

Summary

This video explains the correct way to install n8n for self-hosting using npm, contrasting it with the temporary npx method. It details how to permanently install n8n packages, run n8n, and keep it updated to ensure you always have the latest features and bug fixes.

Highlights

Introduction to n8n Installation Methods
00:00:00

The video introduces two methods for installing n8n: npx and npm. It quickly reiterates that npx is for temporary installations, where packages are removed after the session, making it unsuitable for long-term projects. The focus of this video is on the npm method for permanent installation.

The Advantage of npm Installation
00:00:47

The npm method installs all n8n packages permanently on your device, ensuring they remain available even after closing your session. This is crucial for ongoing projects. However, a key aspect of npm installation is that packages do not update automatically. Manual updates are necessary due to continuous releases on n8n's GitHub repository.

Performing n8n Installation via npm
00:01:44

To install n8n permanently, open the command prompt (or Node.js command prompt) and execute the command 'npm install -g n8n'. This global installation ensures n8n is always available on your system, unlike the temporary npx method used previously.

Running and Maintaining n8n
00:02:42

Once installed, n8n can be launched by simply typing 'n8n' in the command prompt. The video shows how to check the current n8n version through the settings. To update n8n, stop the running instance (Ctrl+C in the command prompt) and then use the command 'npm update -g n8n'. This ensures your n8n instance is running with the latest features and bug fixes.

Summary of Installation and Update Process
00:05:14

The video concludes by summarizing the two installation methods: npx for temporary use and npm for permanent, self-hosted deployment. It emphasizes that npm is the preferred method for this course, requiring occasional manual updates to stay current. The next video will cover the first practical application of n8n.

Recently Summarized Articles

Loading...