hint: [Bug] "A valid configuration file can't be found" loop on installation
π Bug report
When installing webhint from WSL using npx hint https://www.mysite.com/ the process canβt create a default configuration file and remains in a loop. I know it could be something from my environment but a detailed error why file could not be created (missing utility, permissions, etc.) could be useful.
Description
$ npx hint https://www.mysite.com/- A valid configuration file canβt be found. Do you want to use the default configuration? To know more about the default configuration see: https://webhint.io/docs/user-guide/#default-configuration (Y/n), Y
- A valid configuration file canβt be found. Do you want to use the default configuration? To know more about the default configuration see: https://webhint.io/docs/user-guide/#default-configuration (Y/n), Y
- A valid configuration file canβt be found. Do you want to use the default configuration? To know more about the default configuration see: https://webhint.io/docs/user-guide/#default-configuration (Y/n), Y
- β¦ loop β¦
Environment
- __
npxversion: v9.7.1 __ - __
Node.jsversion: v9.10.0 __ OS: Windows 10 WSL Ubuntu 16.04.3 LTS xenial- __URL for which webhint failed: https://snowballv2.azurewebsites.net/ __
Debug output
raw output
mahome@CSEMAHO /mnt/c/Users/mapach/source/repos $ npx hint https://snowballv2.azurewebsites.net/
info looking for cached prebuild @ /home/mahome/.npm/_prebuilds/47fbee-iltorb-v2.4.3-node-v59-linux-x64.tar.gz
http request GET https://github.com/MayhemYDG/iltorb/releases/download/v2.4.3/iltorb-v2.4.3-node-v59-linux-x64.tar.gz
http 404 https://github.com/MayhemYDG/iltorb/releases/download/v2.4.3/iltorb-v2.4.3-node-v59-linux-x64.tar.gz
WARN install No prebuilt binaries found (target=9.10.0 runtime=node arch=x64 libc= platform=linux)
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:170:21)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:170:21)
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mahome/.npm/_npx/174/lib/node_modules/hint/node_modules/iltorb
gyp ERR! node -v v9.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Couldn't find any valid configuration β
β β
β Running hint with the default configuration. β
β β
β Learn more about how to create your own configuration at: β
β β
β https://webhint.io/docs/user-guide/ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
A valid configuration file can't be found. Do you want to use the default configuration? To know more about the default configuration see: https://webhint.io/docs/user-guide/#default-configuration (Y/n)Y
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Couldn't find any valid configuration β
β β
β Running hint with the default configuration. β
β β
β Learn more about how to create your own configuration at: β
β β
β https://webhint.io/docs/user-guide/ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
A valid configuration file can't be found. Do you want to use the default configuration? To know more about the default configuration see: https://webhint.io/docs/user-guide/#default-configuration (Y/n)Y
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Couldn't find any valid configuration β
β β
β Running hint with the default configuration. β
β β
β Learn more about how to create your own configuration at: β
β β
β https://webhint.io/docs/user-guide/ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
A valid configuration file can't be found. Do you want to use the default configuration? To know more about the default configuration see: https://webhint.io/docs/user-guide/#default-configuration (Y/n) Y
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 23 (20 by maintainers)
Commits related to this issue
- Add `npx` to hint command Addressing this comment: https://github.com/webhintio/hint/issues/3134#issuecomment-547534559 @hxlnt — committed to chryw/hint by chryw 5 years ago
@chrywβs Mac βred Xβ result reproβd by @codepo8 as well:
If a fix might be a bit in the future, should we update the
npxinstructions in the docs? Want to be sure a new userβs first experience is a good one.