Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘Please set environment variable NODE_PATH’ error #76

Closed
island205 opened this issue Aug 13, 2013 · 4 comments
Closed

‘Please set environment variable NODE_PATH’ error #76

island205 opened this issue Aug 13, 2013 · 4 comments
Assignees

Comments

@island205
Copy link
Member

$ 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是:,是不是应该换成;

@ghost ghost assigned lepture Aug 13, 2013
@afc163
Copy link
Member

afc163 commented Aug 13, 2013

@lepture

lepture added a commit that referenced this issue Aug 13, 2013
@lepture
Copy link
Contributor

lepture commented Aug 13, 2013

Thanks for your feedback.

@island205
Copy link
Member Author

@lepture 可以解释下吗?

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

@popomore
Copy link
Member

应该除了 windows 都是冒号吧

@afc163 afc163 closed this as completed Aug 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants