ECONNRESET error when creating any yo office project
See original GitHub issueI’m not able to run yo office
on my Windows 10 machine. When I run the following command
yo office --projectType excel-functions --name "new addin" --host excel --ts true
I get the following error message
D:\Users\{uname}\AppData\Roaming\npm\node_modules\generator-office\node_modules\cls-hookec\context.js:177
throw exception;
^
Error: read ECONNRESET
at TLSWRAP.onStreamRead (internal/stream_base_commons.js:201:27( {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read',
'error@context': { _ns_name: 'AI-CLS-Session', id: 140 }
I’m using yo v6.14.5 and generator-office v6.14.5.
Additionally, I’m not able to run any of my previous projects. Excel won’t sideload anything anymore and gives the same ECONNRESET error when trying to.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
npm not working - "read ECONNRESET" - Stack Overflow
I was trying to install jquery in Angular project using the cmd - npm install jquery But there was a proxy error which...
Read more >Fixing an ECONNRESET error - Postman
The ECONRESET error means that the server unexpectedly closed the connection and the request to the server was not fulfilled. Connection-related ...
Read more >generator-office - npm
This Yeoman generator creates a Node.js Office Add-in project that can be managed with Visual Studio Code or any other editor. You can...
Read more >ECONNRESET error when connecting to Office 365 from node.js
When trying to connect to Office 365 from your node.js application you get the ECONNRESET error.
Read more >NodeJS - npm install errors on Windows - YouTube
NOTE: If you are using Windows 10, you will want to open an Administrator PowerShell (right-click and choose "Run as administrator").
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I ran into the same problem. By executing the following code, I can now create add-in.
npm config set registry http://registry.npmjs.org/
Closing this issue as GitHub access is a requirement for using Yo Office because the project templates reside in GitHub