【问题标题】:Error: Cannot find module 'commander' in stencil on Local server错误:在本地服务器的模具中找不到模块“commander”
【发布时间】:2016-12-12 11:35:00
【问题描述】:

我已经在本地服务器上安装了模板。运行stencil init 命令时出现此错误:

Error: Cannot find module 'commander'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\payal\AppData\Roaming\npm\node_modules\@bigcommerce\stencil-cli\bin\stencil:3:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

任何帮助表示赞赏。

【问题讨论】:

    标签: bigcommerce stencils


    【解决方案1】:

    该错误通常表示节点版本问题。尝试切换到 Node 4.4.5 并重新安装 Stencil。我使用NVM 在我的机器上管理多个版本的Node,就像一个魅力。

    【讨论】:

      猜你喜欢
      • 2018-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-17
      • 2022-08-18
      • 1970-01-01
      • 1970-01-01
      • 2017-09-26
      相关资源
      最近更新 更多