SyntaxError: Cannot use import statement outside a module 아래와 같은 에러가 발생한다면... 정답은 바로 Warning에 표시됩니다. To load an ES module, set "type": "module" in the package.json or use the .mjs extension. $ node index.js (node:2484) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use `node --trace-warnings ...` to show where the warning was created) D:\works..