search

Home  >  Q&A  >  body text

javascript - How to set the environment variables of the gulp plug-in in sublime?

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

大家讲道理大家讲道理2775 days ago543

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-19 10:16:32

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

    reply
    0
  • Cancelreply