V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
chenqh
V2EX  ›  Visual Studio Code

关于 vscode extension Cannot find module 'brace-expansion'

  •  
  •   chenqh · 2019-03-18 10:30:06 +08:00 · 2045 次点击
    这是一个创建于 2112 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我写了一个 hello world 的插件,调试模式没有问题
    但是我vsce package生成 vsix,用 vscode install 之后,
    development tools 的 log 里面会有这个问题

    extensionService.ts:786 Activating extension '***.helloworld' failed: Cannot find module 'brace-expansion'.
    _logMessageInConsole @ extensionService.ts:786
    _logOrShowMessage @ extensionService.ts:800
    $localShowMessage @ mainThreadExtensionService.ts:32
    _doInvokeHandler @ rpcProtocol.ts:390
    _invokeHandler @ rpcProtocol.ts:375
    _receiveRequest @ rpcProtocol.ts:295
    _receiveOneMessage @ rpcProtocol.ts:225
    _protocol.onMessage.e @ rpcProtocol.ts:100
    fire @ event.ts:584
    r @ ipc.net.ts:295
    e @ ipc.net.ts:302
    fire @ event.ts:584
    o @ ipc.net.ts:103
    _socketDataListener.e @ ipc.net.ts:132
    emit @ events.js:182
    addChunk @ _stream_readable.js:279
    readableAddChunk @ _stream_readable.js:264
    Readable.push @ _stream_readable.js:219
    onread @ net.js:636
    console.ts:134 [Extension Host] Activating extension '***.helloworld' failed: Cannot find module 'brace-expansion'.
    t.log @ console.ts:134
    $logExtensionHostMessage @ mainThreadConsole.ts:39
    _doInvokeHandler @ rpcProtocol.ts:390
    _invokeHandler @ rpcProtocol.ts:375
    _receiveRequest @ rpcProtocol.ts:295
    _receiveOneMessage @ rpcProtocol.ts:225
    _protocol.onMessage.e @ rpcProtocol.ts:100
    fire @ event.ts:584
    r @ ipc.net.ts:295
    e @ ipc.net.ts:302
    fire @ event.ts:584
    o @ ipc.net.ts:103
    _socketDataListener.e @ ipc.net.ts:132
    emit @ events.js:182
    addChunk @ _stream_readable.js:279
    readableAddChunk @ _stream_readable.js:264
    Readable.push @ _stream_readable.js:219
    onread @ net.js:636
    console.ts:134 [Extension Host] Activating extension `***.helloworld` failed:  Cannot find module 'brace-expansion'
    

    就算我 cnpm install brace-expansion,还是有问题,这个问题怎么解决?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   998 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:55 · PVG 03:55 · LAX 11:55 · JFK 14:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.