【问题标题】:Nodejs not starting web service for office addinNodejs没有为Office插件启动Web服务
【发布时间】:2021-06-11 10:29:35
【问题描述】:

最近我开始创建 Office Web 插件,并使用 Visual Studio 创建了一对。但现在,我必须改为使用 NodeJS 创建加载项。我遵循了 Yeoman 生成器的官方 Microsoft 说明,安装工作正常,直到我运行

npm 开始

这个日志。

C:\Users\***\source\secondapp>npm start

> office-addin-taskpane-js@0.0.1 start
> office-addin-debugging start manifest.xml

Debugging is being started...
App type: desktop
Enabled debugging for add-in b56ba8a6-675d-44bd-8182-0822410ef349. Debug method: 0
Sideloading the Office Add-in...
Debugging started.

C:\Users\***\source\secondapp>

Web 服务无法启动。没有给出任何错误。

【问题讨论】:

    标签: node.js office365 yeoman-generator


    【解决方案1】:

    我现在也有同样的情况.. 只是 word 是打开的,但没有启动 webpack。 我必须手动启动它

    npm run dev-server
    

    比我能够在 MSWord 中打开我的插件..

    我曾经使用它大约一年半

    npm start
    

    但也许在将节点更新到节点 15.14 之后.. 它停止工作.. 尝试启动第一个开发服务器,然后打开办公室

    别忘了检查:

    CheckNetIsolation LoopbackExempt -a -n=”microsoft.win32webviewhost_cw5n1h2txyewy” 
    

    【讨论】:

      猜你喜欢
      • 2016-10-04
      • 1970-01-01
      • 1970-01-01
      • 2011-10-06
      • 2012-05-24
      • 1970-01-01
      • 2016-07-26
      相关资源
      最近更新 更多