NullVoxPopuli / punycode-detector

Find out who/what still needs to deal with the punycode deprecation
GNU General Public License v3.0
5 stars 1 forks source link

import: command not found #1

Closed st-h closed 2 months ago

st-h commented 2 months ago

When I run npx punycode-detector in the directory of my ember app, I see the following error.

node v22.5.1

npx punycode-detector     
/Users/steve/.npm/_npx/59debf53bd916502/node_modules/.bin/punycode-detector: line 1: import: command not found
/Users/steve/.npm/_npx/59debf53bd916502/node_modules/.bin/punycode-detector: line 2: import: command not found
/Users/steve/.npm/_npx/59debf53bd916502/node_modules/.bin/punycode-detector: line 3: import: command not found
/Users/steve/.npm/_npx/59debf53bd916502/node_modules/.bin/punycode-detector: line 5: syntax error near unexpected token `('
/Users/steve/.npm/_npx/59debf53bd916502/node_modules/.bin/punycode-detector: line 5: `let $exec = promisify(exec);'
NullVoxPopuli commented 2 months ago

Fixed in 1.0.2, thank you!!

st-h commented 2 months ago

Thank you. Unfortunately there seems to be another issue:

npx punycode-detector
Need to install the following packages:
punycode-detector@1.0.2
Ok to proceed? (y) y

node:internal/modules/run_main:115
    triggerUncaughtException(
    ^

AssertionError [ERR_ASSERTION]: ag was not found. This tool requires ag (the_silver_searcher) -- which can be installed by following the istructions here: https://github.com/ggreer/the_silver_searcher
    at file:///Users/steve/.npm/_npx/59debf53bd916502/node_modules/punycode-detector/index.js:21:1 {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '=='
}

Node.js v22.5.1
NullVoxPopuli commented 2 months ago
ag was not found. This tool requires ag (the_silver_searcher)
which can be installed by following the instructions here: 
https://github.com/ggreer/the_silver_searcher
st-h commented 2 months ago

Thanks. I thought that was a bug because the README does not mention that requirement anywhere.

NullVoxPopuli commented 2 months ago

I updated the README, thanks!