artilleryio / artillery

The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
https://www.artillery.io
Mozilla Public License 2.0
8.05k stars 512 forks source link

ERROR: error on running npx artillery #3382

Closed gelsogrove closed 4 weeks ago

gelsogrove commented 1 month ago

Hello

Could you please take a look to this error that appears suddenly running npx artillery ?

npx artillery /Users/gelso/workspace/project-name/node_modules/widest-line/node_modules/string-width/index.js:3 const isFullwidthCodePoint = require('is-fullwidth-code-point'); ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/gelso/workspace/project-name/node_modules/is-fullwidth-code-point/index.js from /Users/gelso/workspace/project-nam/node_modules/widest-line/node_modules/string-width/index.js not supported.

Node version : v20.17.0 "artillery": "^2.0.20",

Thanks in advance

hassy commented 1 month ago

Unable to reproduce here with Node v20.17.0

hassy commented 1 month ago

Works as expected in a fresh Docker container:

docker run --rm -it --entrypoint /bin/sh node:20.17.0-alpine
/ # npx artillery@2.0.20
Need to install the following packages:
artillery@2.0.20
Ok to proceed? (y) y

        ___         __  _ ____
  _____/   |  _____/ /_(_) / /__  _______  __ ___
 /____/ /| | / ___/ __/ / / / _ \/ ___/ / / /____/
/____/ ___ |/ /  / /_/ / / /  __/ /  / /_/ /____/
    /_/  |_/_/   \__/_/_/_/\___/_/   \__  /
                                    /____/

Cloud-scale load testing. https://www.artillery.io

VERSION
  artillery/2.0.20 linux-arm64 node-v20.17.0

USAGE
  $ artillery [COMMAND]

COMMANDS
  dino         here be dinosaurs
  help         Display help for artillery.
  quick        run a simple test without writing a test script
  report       generate a HTML report from a JSON log produced with artillery run
  run          run a test script locally or on AWS Lambda
  run-aci      launch a test using Azure ACI
  run-ecs      launch a test using AWS ECS/Fargate
  run-fargate  launch a test using AWS ECS/Fargate
  run-lambda   launch a test using AWS Lambda
gelsogrove commented 4 weeks ago

yes it works fine wit the latest version thanks!