debian node environment configuration

1. Now node.tar.gz

2. Extract to the specified directory (if it is to give ordinary user directory assign permissions chmod -R 760 / opt)

export NODE_HOME=/path/node-version
export PATH=$PATH:$NODE_HOME/bin

3. Verify if the node node -v version appears how for success

Guess you like

Origin www.cnblogs.com/Ai-Hen-Jiao-zhi/p/12116947.html