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.

Cannot get to run on Windows 10

See original GitHub issue

Information

https://whatismybrowser.com/w/384LKK4

Help request

Problem

Getting error when trying to build:

Fetching Community Tools template from www.digitalocean.com… …fetching & conversion completed, saved to build/base.html

nginxconfig.io@1.0.0 build:prism D:\IaaProjects\Sandbox\Nginx\nginxconfig.io node src/nginxconfig/build/prism.js

nginxconfig.io@1.0.0 build:static D:\IaaProjects\Sandbox\Nginx\nginxconfig.io copyfiles --up 2 src/static/{,**/} dist

nginxconfig.io@1.0.0 build:tool D:\IaaProjects\Sandbox\Nginx\nginxconfig.io vue-cli-service build src/nginxconfig/mount.js --no-clean

ERROR Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol ‘d:’ Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol ‘d:’ at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:791:11) at Loader.resolve (internal/modules/esm/loader.js:89:40) at Loader.getModuleJob (internal/modules/esm/loader.js:242:28) at Loader.import (internal/modules/esm/loader.js:177:28) at importModuleDynamically (internal/modules/cjs/loader.js:1015:27) at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14) at loadFileConfig (D:\IaaProjects\Sandbox\Nginx\nginxconfig.io\node_modules@vue\cli-service\lib\util\loadFileConfig.js:28:7) at Service.loadUserOptions (D:\IaaProjects\Sandbox\Nginx\nginxconfig.io\node_modules@vue\cli-service\lib\Service.js:323:44) at Service.init (D:\IaaProjects\Sandbox\Nginx\nginxconfig.io\node_modules@vue\cli-service\lib\Service.js:73:30) at Service.run (D:\IaaProjects\Sandbox\Nginx\nginxconfig.io\node_modules@vue\cli-service\lib\Service.js:231:16) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! nginxconfig.io@1.0.0 build:tool: vue-cli-service build src/nginxconfig/mount.js --no-clean npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nginxconfig.io@1.0.0 build:tool 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\orinw_t1xyplb\AppData\Roaming\npm-cache_logs\2022-03-15T13_30_10_213Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! nginxconfig.io@1.0.0 build: npm run build:clean && npm run build:template && npm run build:prism && npm run build:static && npm run build:tool npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nginxconfig.io@1.0.0 build 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\orinw_t1xyplb\AppData\Roaming\npm-cache_logs\2022-03-15T13_30_10_239Z-debug.log

What I have tried

Tried running in Git Bash, Powershell, and Ubuntu 20.04 using WSL2. All of these give the same error. Have tried cloning to a fresh folder, but get the same error.

Screenshots

N/A

Thank you!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
CChiakicommented, May 19, 2022

On Windows 10
I chang to edit /Users/cchiaki/代码/HBuilderProjects/nginxconfig.io-master/node_modules/@vue/cli-service/lib/util/loadFileConfig.js

like this

image

It is Ok;

error log: Import(“D://cchiaki/代码/HBuilderProjects/nginxconfig.io-master/vue.config.js”) On Windows, absolute paths must be valid file:// URLs. Received protocol ‘d:’

0reactions
MattIPv4commented, May 1, 2022

I don’t have a Windows device setup that I can debug this on unfortunately, so I’ll leave this issue open to the community for anyone that wishes to dive in and look at resolving this 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

run,cmd not opening - Microsoft Community
1. Press Ctrl + Shift + Esc to open Task Manager · 2. Locate Windows Explorer on the list. Right click Windows Explorer...
Read more >
Windows 10 Won't Boot? 12 Fixes to Get Your PC Running ...
1. Try Windows Safe Mode · 2. Check Your Battery · 3. Unplug All Your USB Devices · 4. Turn Off Fast Boot...
Read more >
How to Fix “This app can't run on your PC” in Windows 10
Run the App as an Admin · Right-click the app file and select Properties. · Go to the Compatibility tab in Properties. ·...
Read more >
[Fixed] Command Prompt (CMD) Not Working/Opening ...
Fix 1. Restart Your Windows 10 PC; Fix 2. Temporarily Disable Antivirus Software; Fix 3. Modify PATH Environment Variables Settings; Fix 4.
Read more >
Windows 10 Start Menu Not Opening: 7 Things to Try
How to Fix Windows 10 Start Menu Not Opening · 1. Sign Out of Your Microsoft Account · 2. Restart Windows Explorer ·...
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