MA
Size: a a a
MA
R
АТ
T
R
T
T
MD
npm i knex -g
потом можем в консоли писать:knex commandРД
MD
R
import {MigrationInterface, QueryRunner} from "typeorm";
^^^^^^SyntaxError: Cannot use import statement outside a module
λР
import {MigrationInterface, QueryRunner} from "typeorm";
^^^^^^SyntaxError: Cannot use import statement outside a module
R
R
*/
||||||||| ||||
||||||||| ||||
|||| ||||
|||| |||| ||||
|||| |||| ||||
|||| |||| ||||
|||| |||| ||||
events.js:298
throw er; // Unhandled 'error' event
^
TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer. Received undefined
at validChunk (_stream_writable.js:286:10)
at WriteStream.Writable.write (_stream_writable.js:325:23)
at printf (/home/user/ncheck/ncheck.js:26:24)
at Object.<anonymous> (/home/user/ncheck/ncheck.js:120:5)
at Module._compile (internal/modules/cjs/loader.js:1151:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Emitted 'error' event on WriteStream instance at:
at errorOrDestroy (internal/streams/destroy.js:128:12)
at validChunk (_stream_writable.js:289:5)
at WriteStream.Writable.write (_stream_writable.js:325:23)
[... lines matching original stack trace ...]
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
code: 'ERR_INVALID_ARG_TYPE'
}
*/
S
倫岡
DC
||||||||| ||||
||||||||| ||||
|||| ||||
|||| |||| ||||
|||| |||| ||||
|||| |||| ||||
|||| |||| ||||
events.js:298
throw er; // Unhandled 'error' event
^
TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer. Received undefined
at validChunk (_stream_writable.js:286:10)
at WriteStream.Writable.write (_stream_writable.js:325:23)
at printf (/home/user/ncheck/ncheck.js:26:24)
at Object.<anonymous> (/home/user/ncheck/ncheck.js:120:5)
at Module._compile (internal/modules/cjs/loader.js:1151:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Emitted 'error' event on WriteStream instance at:
at errorOrDestroy (internal/streams/destroy.js:128:12)
at validChunk (_stream_writable.js:289:5)
at WriteStream.Writable.write (_stream_writable.js:325:23)
[... lines matching original stack trace ...]
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
code: 'ERR_INVALID_ARG_TYPE'
}