简体   繁体   English

Nodejs没有为office插件启动web服务

[英]Nodejs not starting web service for office addin

Recently I jumped into creating office web add-ins and have created a couple using visual studio.最近我开始创建 Office web 插件,并使用 Visual Studio 创建了一对。 But now, I have to change to creating add-in using NodeJS.但现在,我必须改为使用 NodeJS 创建加载项。 I followed the official Microsoft instruction for the Yeoman generator and the installation works fine until I run我遵循了 Yeoman 生成器的官方 Microsoft 说明,安装工作正常,直到我运行

npm start npm启动

This logs.这记录。

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>

As you can the web service fails to start.如您所见,web 服务无法启动。 Without giving any errors.没有给出任何错误。

I have guite same situation right now.. just word is open but not started webpack.我现在也有同样的情况.. 只是 word 已打开但未启动 webpack。 I have to start it manually我必须手动启动它

npm run dev-server

than I was able to open my addin in MSWord..比我能够在 MSWord 中打开我的插件..

I use to work with it about year and half just by我曾经使用它大约一年半的时间

npm start

but perhaps after updatin node to node 15.14.. its stops working.. Give a try to start first dev server and than open office但也许在将节点更新到节点 15.14 之后.. 它停止工作.. 尝试启动第一个开发服务器,然后打开办公室

dont forget to check:不要忘记检查:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM