I'm trying to publish an npm package, when testing locally during an import of my package I get the following error :
Uncaught: SyntaxError: Cannot use import statement inside the Node.js REPL, alternatively use dynamic import
This is my package.js content :
{
  "name": "gedflod",
  "version": "0.0.1",
  "description": "A gedflod nodejs package for doing some thing",
  "main": "index.js",
  "type": "module",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ged-flod/gedflod.git"
  },
  "keywords": [
    "ged",
    "flod",
    "ged-flod",
    "gedflod",
  ],
  "author": "ged-flod",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/ged-flod/gedflod/issues"
  },
  "homepage": "https://github.com/ged-flod/gedflods#readme",
  "dependencies": {
    "axios": "^0.26.0"
  }
}
Can someone you help me.
 
    