Fiz tudo conforme a Juliana explicou, instalei o chalk e aparece este codigo de erro:
Error: Cannot find module 'chalk' Require stack:
- G:\My Drive\Alura\6 - NodeJS - Criando sua primeira biblioteca\index.js at Function.Module.resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module.load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (G:\My Drive\Alura\6 - NodeJS - Criando sua primeira biblioteca\index.js:1:15) at Module.compile (node:internal/modules/cjs/loader:1101:14) at Object.Module.extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module.load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/runmain:81:12) {
** code: 'MODULE_NOT_FOUND', ** requireStack: [ 'G:\My Drive\Alura\6 - NodeJS - Criando sua primeira biblioteca\index.js' ] }
JA TENTEI USAR import E TAMBEM NAO FUNCIONA.
SIM, OS ARQUIVOS ESTAO NO MESMO DIRETORIO.