question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ECONNRESET error when creating any yo office project

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
dafengzcommented, Sep 2, 2021

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/

0reactions
TCourtneyOwencommented, Jun 23, 2020

Closing this issue as GitHub access is a requirement for using Yo Office because the project templates reside in GitHub

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found