Toto je starší verze dokumentu!
Do package.json přidat
"type": "module",
Procházení filesystému
{ "name": "nodejs-hello-adam", "version": "1.0.0", "description": "Super test", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "type": "module", "author": "Adam Benda", "license": "MIT", "dependencies": { "sharp": "^0.32.1" } }