【问题标题】:JSMP init command getting einval errorJSMP init 命令获取 einval 错误
【发布时间】:2016-06-21 04:30:09
【问题描述】:

jspm init 结果:

  Package.json file does not exist, create it? [yes]:
    err  Error: EINVAL, invalid argument
             at new Socket (net.js:157:18)
             at process.stdin (node.js:687:19)
             at MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\lib\ui.js:202:12
             at lib$rsvp$$internal$$initializePromise (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\rsvp\dist\rsvp.js:1084:9)
             at new lib$rsvp$promise$$Promise (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\rsvp\dist\rsvp.js:546:53)
             at Object.exports.input (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\lib\ui.js:190:10)
             at Object.exports.confirm (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\lib\ui.js:157:15)
             at Promise.resolve.then.then.config.pjsonPath (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\lib\config.js:70:17)
             at tryCatchReject (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:1183:30)
             at runContinuation1 (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:1142:4)
             at Fulfilled.when (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:930:4)
             at ContinuationTask.run (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:1040:24)
             at Scheduler._drain (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:97:19)
             at Scheduler.drain (MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\node_modules\systemjs\node_modules\when\es6-shim\Promise.js:62:9)
             at process._tickCallback (node.js:442:13)
             at Function.Module.runMain (module.js:499:11)

可能与此有关:https://github.com/jspm/jspm-cli/issues/610

【问题讨论】:

    标签: npm cygwin jspm


    【解决方案1】:

    看起来这个问题可能与我的 cygwin 安装有关:Node.js Cygwin not supported 可能无法进入交互提示。

    使用jspm init -y 有效,但大多数教程中都没有提及。

    【讨论】:

      猜你喜欢
      • 2020-12-23
      • 1970-01-01
      • 2016-06-23
      • 2020-11-30
      • 1970-01-01
      • 2019-08-22
      • 1970-01-01
      • 2017-01-24
      • 1970-01-01
      相关资源
      最近更新 更多