Mais informações aqui: https://cap.cloud.sap/docs/get-started/#local-setup
Avalados por :
Refiro-me à URL:
undefined/docs/get-started/in-a-nutshell
Por favor, informe-me sobre os seguintes comentários:
Depois de obter as amostras aqui: git clone https://github.com/sap-samples/cloud-cap-samples
Ao executar cds watch, recebo a seguinte mensagem
[cds] - connect using bindings from: { registry: '~/.cds-services.json' } [cds] - connect to db > sqlite { database: ':memory:' } Error: Cannot find module '/Users/i817346/cap/samples/node_modules/sqlite3/lib/binding/napi-v3-darwin-x64/node_sqlite3.node' Require stack: - /Users/i817346/cap/samples/node_modules/sqlite3/lib/sqlite3-binding.js - /Users/i817346/cap/samples/node_modules/sqlite3/lib/sqlite3.js - /Users/i817346/cap/samples/node_modules/@sap/cds/libx/_runtime/sqlite/Service.js - /Users/i817346/cap/samples/node_modules/@sap/cds/lib/serve/factory.js - /Users/i817346/cap/samples/node_modules/@sap/cds/lib/index.js - /Users/i817346/cap/samples/node_modules/@sap/cds/bin/cds.js - /usr/local/lib/node_modules/@sap/cds-dk/bin/cds.js - /usr/local/lib/node_modules/@sap/cds-dk/bin/watch.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:92:18) at Object.<anonymous> (/Users/i817346/cap/samples/node_modules/sqlite3/lib/sqlite3-binding.js:4:15) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:14) at Module.require (internal/modules/cjs/loader.js:974:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/i817346/cap/samples/node_modules/sqlite3/lib/sqlite3-binding.js', '/Users/i817346/cap/samples/node_modules/sqlite3/lib/sqlite3.js', '/Users/i817346/cap/samples/node_modules/@sap/cds/libx/_runtime/sqlite/Service.js', '/Users/i817346/cap/samples/node_modules/@sap/cds/lib/serve/factory.js', '/Users/i817346/cap/samples/node_modules/@sap/cds/lib/index.js', '/Users/i817346/cap/samples/node_modules/@sap/cds/bin/cds.js', '/usr/local/lib/node_modules/@sap/cds-dk/bin/cds.js', '/usr/local/lib/node_modules/@sap/cds-dk/bin/watch.js' ] }
Mais informações aqui: https://cap.cloud.sap/docs/get-started/#local-setup
Olá Doug,
Parece que sua configuração está incompleta e falta a instalação do sqlite3
Dê uma chance e tente novamente:
npm install sqlite3
Saudações,
Patrice
contacto@primeinstitute.com
(+51) 1641 9379
(+57) 1489 6964
© 2024 Copyright. Todos los derechos reservados.
Desarrollado por Prime Institute