如何解决Office加载项(Outlook)的此NPM/Yeoman错误日志?

如何解决Office加载项(Outlook)的此NPM/Yeoman错误日志?,npm,yeoman,npm-start,Npm,Yeoman,Npm Start,我跟在后面 当我试图启动npm时,它崩溃了,我在下面显示了命令行输出 注意事项: Yeoman yo office命令没有报告任何错误,并以祝贺结束!您的加载项已创建 在封装和运行这个简单模板时,最明显的问题是添加自签名证书作为受信任的根证书,但是没有出现问题 下面是命令行输出: F:\DropBox\programs\xampp\htdocs\zaq\zaq>npm start > zaq@0.1.0 start F:\DropBox\programs\xampp\htdocs\

我跟在后面

当我试图启动npm时,它崩溃了,我在下面显示了命令行输出

注意事项:

Yeoman yo office命令没有报告任何错误,并以祝贺结束!您的加载项已创建

在封装和运行这个简单模板时,最明显的问题是添加自签名证书作为受信任的根证书,但是没有出现问题

下面是命令行输出:

F:\DropBox\programs\xampp\htdocs\zaq\zaq>npm start

> zaq@0.1.0 start F:\DropBox\programs\xampp\htdocs\zaq\zaq
> webpack-dev-server --mode development --https --key ./certs/server.key --cert ./certs/server.crt --cacert ./certs/ca.crt --port 3000

F:\DropBox\programs\xampp\htdocs\zaq\zaq\node_modules\webpack-cli\bin\config-yargs.js:89
                                describe: optionsSchema.definitions.output.properties.path.description,
                                                                           ^

TypeError: Cannot read property 'properties' of undefined
    at module.exports (F:\DropBox\programs\xampp\htdocs\zaq\zaq\node_modules\webpack-cli\bin\config-yargs.js:89:48)
    at Object.<anonymous> (F:\DropBox\programs\xampp\htdocs\zaq\zaq\node_modules\webpack-dev-server\bin\webpack-dev-server.js:84:40)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zaq@0.1.0 start: `webpack-dev-server --mode development --https --key ./certs/server.key --cert ./certs/server.crt --cacert ./certs/ca.crt --port 3000`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zaq@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\me\AppData\Roaming\npm-cache\_logs\2018-10-16T18_48_40_772Z-debug.log

F:\DropBox\programs\xampp\htdocs\zaq\zaq>
以下是文件的相关部分,从第87行开始:

        "output-path": {
            type: "string",
            describe: optionsSchema.definitions.output.properties.path.description,
            group: OUTPUT_GROUP,
            defaultDescription: "The current directory",
            requiresArg: true
        },
我可以发布整个文件,但它是genearted,我还没有编辑它

我所做的就是

安装NPM 溜溜球办公室 将自签名证书添加为受信任的根证书 npm启动
你知道如何纠正这个问题并让开箱即用的演示程序运行吗?

我尝试了“npm I”webpack@4.18.0'或'npm i网页包-cli@latest"

两人都为我工作过


为了重新考虑上下文

工作得很有魅力。谢谢你,尼古拉斯。现在看看是否可以将其侧向加载到Outlook中。我已经尝试了几个月,但没有成功:-是的,它在Outlook中工作,但由于某种原因,它只在我的服务器上工作,而不是在本地主机上:-/现在看看我是否可以添加一个带有警报“Hello,world”的基本角度控制器;
        "output-path": {
            type: "string",
            describe: optionsSchema.definitions.output.properties.path.description,
            group: OUTPUT_GROUP,
            defaultDescription: "The current directory",
            requiresArg: true
        },