spmjs / spm2

源码已合并到
https://github.com/spmjs/spm/tree/2.x
Other
126 stars 26 forks source link

‘Please set environment variable NODE_PATH’ error #76

Closed island205 closed 11 years ago

island205 commented 11 years ago
$ spm help
  Please set environment variable NODE_PATH:

    NODE_PATH=c:\Users\zhi.cun\AppData\Roaming\npm\node_modules

  Static Package Manager

  Usage: spm <command> [options]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  System Commands:

    plugin         plugin system for spm
    config         configuration for spm
    help           show help information

  Package Commands:

    tree           show dependencies tree
    info           information of a module
    login          login your account
    search         search modules
    install        install a module
    publish        publish a module
    unpublish      unpublish a module

  Plugin Commands:

    init           init a template
    build          Build a standar cmd module.

实际上我是配置了NODE_PATH的,只是我NODE_PATH的值为:C:\Users\zhi.cun\AppData\Roaming\npm\node_modules;C:\Program Files (x86)\Subversion\bin,导致https://github.com/spmjs/spm2/blob/master/lib/utils/program.js#L89 逻辑失效,这里的split是:,是不是应该换成;

afc163 commented 11 years ago

@lepture

lepture commented 11 years ago

Thanks for your feedback.

island205 commented 11 years ago

@lepture 可以解释下吗?

比如冒号':'是用在什么平台的?

popomore commented 11 years ago

应该除了 windows 都是冒号吧