[v3 Beta] No such file or directory "...\dist\static_modules.fs"
See original GitHub issueAutoRest 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:
- Created 4 years ago
- Comments:11 (5 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
do an
autorest --reset
– looks like a plugin is corrupt.@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