javascript - How to set the environment variables of the gulp plug-in in sublime?
大家讲道理
大家讲道理 2017-05-19 10:14:32
0
1
505

Running environment: sublime text3 under ubuntu
Problem: Before node was installed directly, plug-ins under sublime that depended on node can run directly. Now I use nvm to manage the node version. The installation path of node has changed and gulp cannot run.
For other plug-ins, just change the node path of the configuration file. I don’t understand the gulp configuration file. It is written in github.

{
     “ exec_args ”:{
         “ path ”:“ / bin:/ usr / bin:/ usr / local / bin ”
    }
}

I don’t understand how to change it either.
ps:
Current node path:~/.nvm/versions/node/v6.10.3/bin/node
gulp path: 1. "Under the node path"/lib/node_modules
2. "Under the project path"/node_modules

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
漂亮男人

I solved it myself. The path parameter is set to the location of the node. I just added the new location

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template