Install node under Ubuntu 16.04 The jade module of JS. Jade has been installed in the global. The jade command cannot be found

Time:2022-5-14

Because no environment variable was added:
1. Modify the configuration file

> $ vim ~/.profile

2. After opening the configuration file, add it at the end

> PATH=/opt/node-v6.9.1-linux-x64/bin:$PATH

3. Save and exit
4. Effective configuration file

>$ source .profile 

5. After the system is cancelled, it will take effect permanently.

PS: after the global installation of jshint, bower and other modules, if the command cannot be found after entering the command, the same is true.

Recommended Today

Spring source code analysis II: context component (webapplicationcontext)

Spring source code analysis II: context component (webapplicationcontext) The last article analyzedDispatcherServletAndContextLoaderListenerThese two classes resolve the process of application initialization and request processing, but some components need to be resolved: ConfigurableWebApplicationContext.refreshRefresh context ApplicationContext.getBeanGet bean from context DispatcherServlet.propertiesPolicy processing defined in the file ContextLoader.propertiesPolicy processing defined in the file View.renderView rendering Let’s take a look at […]