انجمن‌های فارسی اوبونتو

کمک و پشتیبانی => انجمن عمومی => نویسنده: mr.snaros در 17 شهریور 1399، 02:44 ب‌ظ

عنوان: تنظیمات profile ./~ برای node js به مشکل خوردم
ارسال شده توسط: mr.snaros در 17 شهریور 1399، 02:44 ب‌ظ

این تنظیماتی هست که کامل در profile قرار دادم و قسمت اخر هم برای node هستش
اما مشکلی که دارم node به صورت خودکار فعال نیست و هر بار باید ترمینال رو باز کنم و کد . ~/.profile   رو مورد استفاده فرار بدم که از node بتونم استفاده کنم و با بستن ترمینال دوباره همون اش و همون کاسه و node غیرفعال میشه

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

# Nodejs
export NODEJS_HOME=/usr/local/lib/node/nodejs
export PATH=$NODEJS_HOME/bin:$PATH


عنوان: پاسخ : تنظیمات profile ./~ برای node js به مشکل خوردم
ارسال شده توسط: دانیال بهزادی در 18 شهریور 1399، 03:08 ب‌ظ
باید بذاری توی ‪.bashrc‬
عنوان: پاسخ : تنظیمات profile ./~ برای node js به مشکل خوردم
ارسال شده توسط: mr.snaros در 21 شهریور 1399، 02:31 ق‌ظ
باید بذاری توی ‪.bashrc‬
مرسی حل شد