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.

[v3 Beta] No such file or directory "...\dist\static_modules.fs"

See original GitHub issue
AutoRest code generation utility [version: 3.0.5197; node: v10.15.3, max-memory: 8192 gb]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
{ Error: ENOENT: no such file or directory, stat 'C:\Users\daniel.edwards\node_modules\@microsoft.azure\autorest-core\dist\static_modules.fs'
    at Object.statSync (fs.js:850:3)
    at new StaticVolumeFile (C:\Users\daniel.edwards\AppData\Roaming\npm\node_modules\autorest\dist\static-loader.js:1:6192)
    at StaticFilesystem.load (C:\Users\daniel.edwards\AppData\Roaming\npm\node_modules\autorest\dist\static-loader.js:1:8756)
    at Object.load (C:\Users\daniel.edwards\node_modules\@microsoft.azure\autorest-core\dist\static-loader.js:1:4332)
    at Object.<anonymous> (C:\Users\daniel.edwards\node_modules\@microsoft.azure\autorest-core\entrypoints\app.js:5:56)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (C:\Users\daniel.edwards\AppData\Roaming\npm\node_modules\autorest\dist\static-loader.js:1:18665)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.tryRequire (C:\Users\daniel.edwards\AppData\Roaming\npm\node_modules\autorest\dist\autorest-as-a-service.js:75:20)
  errno: -4058,
  syscall: 'stat',
  code: 'ENOENT',
  path:
   'C:\\Users\\daniel.edwards\\node_modules\\@microsoft.azure\\autorest-core\\dist\\static_modules.fs' }

Think I’ve tried a few different beta versions now but keep running into this. Uninstalled and reinstalled a few times with no luck. Any help appreciated.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fearthecowboycommented, May 16, 2019

do an autorest --reset – looks like a plugin is corrupt.

0reactions
nickzhumscommented, Mar 1, 2020

@fearthecowboy I am having this exact same issue I removed the old autorest using npm uninstall -g autorest and did npm install -g @autorest/autorest

The install completed

But when i did autorest-beta --help

I get the following:

Error: ENOENT: no such file or directory, stat ‘C:\Users\littl\node_modules@autorest\core\dist\static_modules.fs’ at Object.statSync (fs.js:915:3) at new StaticVolumeFile (C:\Users\littl\AppData\Roaming\npm\node_modules@autorest\autorest\dist\static-loader.js:1:7081) at exports.StaticFilesystem.load (C:\Users\littl\AppData\Roaming\npm\node_modules@autorest\autorest\dist\static-loader.js:1:9730) at Object.load (C:\Users\littl\node_modules@autorest\core\dist\static-loader.js:1:5187) at Object.<anonymous> (C:\Users\littl\node_modules@autorest\core\entrypoints\app.js:5:56) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions…js (C:\Users\littl\AppData\Roaming\npm\node_modules@autorest\autorest\dist\static-loader.js:1:19423) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Module.require (internal/modules/cjs/loader.js:849:19) { errno: -4058, syscall: ‘stat’, code: ‘ENOENT’, path: ‘C:\Users\littl\node_modules\@autorest\core\dist\static_modules.fs’

I checked the folder and there is no static_module.js in the folder

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix nodejs throw err; ^ Error: ENOENT: no such file or ...
Looks like this is a known bug in the module. You could try patching their code as recommended in the issue, or (what...
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