spmjs / spm

Brand new static package manager.
http://spmjs.io
Other
903 stars 180 forks source link

Caught exception: Error: Cannot find module 'spm-env' #430

Closed wentianle closed 11 years ago

wentianle commented 11 years ago

[wentianle@u201 ucloud]$ spm build

Caught exception: Error: Cannot find module 'spm-env'

Error: Cannot find module 'spm-env' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/usr/lib/node_modules/spm/lib/core/config_parse.js:34:11) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17)

leoner commented 11 years ago

@wentianle 如果使用的主干代码,直接在代码目录执行 npm update 即可。