Windows

时间:2017-12-24 06:17:17

标签: jhipster

我能够运行Mac中this链接中的步骤

当我在Windows中尝试相同的示例时,我在npm start上得到以下错误。

 [at-loader] Ok, 0.216 sec.
    Error: spawn UNKNOWN
        at _errnoException (util.js:999:13)
        at ChildProcess.spawn (internal/child_process.js:340:11)
        at exports.spawn (child_process.js:499:9)
        at Object.exports.execFile (child_process.js:209:15)
        at Object.module.exports.fileCommand (D:\Users\myusername\Projects\apps\testjhispter\node_modules\node-notifier\lib\utils.js:53:13)
        at WindowsToaster.notify (D:\Users\myusername\Projects\apps\testjhispter\node_modules\node-notifier\notifiers\toaster.js:65:9)
        at module.exports.WebpackNotifierPlugin.compilationDone (D:\Users\myusername\Projects\apps\testjhispter\node_modules\webpack-notifier\index.js:62:18)
        at Compiler.applyPlugins (D:\Users\myusername\Projects\apps\testjhispter\node_modules\tapable\lib\Tapable.js:61:14)
        at Watching._done (D:\Users\myusername\Projects\apps\testjhispter\node_modules\webpack\lib\Compiler.js:105:17)
        at onCompiled (D:\Users\myusername\Projects\apps\testjhispter\node_modules\webpack\lib\Compiler.js:55:18)
        at applyPluginsAsync.err (D:\Users\myusername\Projects\apps\testjhispter\node_modules\webpack\lib\Compiler.js:510:14)
        at next (D:\Users\myusername\Projects\apps\testjhispter\node_modules\tapable\lib\Tapable.js:202:11)
        at D:\Users\myusername\Projects\apps\testjhispter\node_modules\awesome-typescript-loader\src\instance.ts:488:25
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:160:7)
    [Browsersync] Proxying: http://localhost:9060
    [Browsersync] Access URLs:
     -------------------------------------
           Local: http://localhost:9000
        External: http://10.23.150.12:9000
     -------------------------------------
              UI: http://localhost:3001
     UI External: http://10.23.150.12:3001
     -------------------------------------
    webpack: wait until bundle finished: /
    webpack: wait until bundle finished: /
    webpack: wait until bundle finished: /
    webpack: wait until bundle finished: /
    webpack: wait until bundle finished: /
  • Windows 10企业版
  • 节点版本9.3.0
  • NPM版本5.6.0
  • JHipster版本4.13.0

已安装节点LTS版本并再次出现相同错误

Error: spawn UNKNOWN
        at _errnoException (util.js:1024:11)
        at ChildProcess.spawn (internal/child_process.js:323:11)
        at exports.spawn (child_process.js:502:9)
        at Object.exports.execFile (child_process.js:212:15)
        at Object.module.exports.fileCommand (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\node-notifier\lib\utils.js:53:13)
        at WindowsToaster.notify (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\node-notifier\notifiers\toaster.js:65:9)
        at module.exports.WebpackNotifierPlugin.compilationDone (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\webpack-notifier\index.js:62:18)
        at Compiler.applyPlugins (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\tapable\lib\Tapable.js:61:14)
        at Watching._done (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\webpack\lib\Compiler.js:105:17)
        at compiler.emitRecords.err (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\webpack\lib\Compiler.js:79:19)
        at Compiler.emitRecords (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\webpack\lib\Compiler.js:371:38)
        at compiler.emitAssets.err (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\webpack\lib\Compiler.js:62:20)
        at applyPluginsAsyncSeries1.err (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\webpack\lib\Compiler.js:364:12)
        at next (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\tapable\lib\Tapable.js:218:11)
        at Compiler.compiler.plugin (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\webpack\lib\performance\SizeLimitsPlugin.js:99:4)
        at next (D:\Users\myusername\Projects\apps\testjhipsterlts\node_modules\tapable\lib\Tapable.js:220:14)
  • Windows 10企业版
  • 节点8.9.3
  • npm 5.6.0
  • JHipster 4.13.0

尝试安装纱线并使用它代替npm - 没有运气。我仍然得到同样的错误

0 个答案:

没有答案