npm ERR! Missing script: "tsc"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ad/.npm/_logs/2021-10-02T16_49_07_972Z-debug.log
node:child_process:826
err = new Error(msg);
^
Error: Command failed: npm run tsc --init --resolveJsonModule --target es6
npm ERR! Missing script: "tsc"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ad/.npm/_logs/2021-10-02T16_49_07_972Z-debug.log
at checkExecSyncError (node:child_process:826:11)
at Object.execSync (node:child_process:900:15)
at PackageManager.createTsconfig (/usr/local/lib/node_modules/slappey/lib/Manager.js:43:32)
at PackageManager.installDependencies (/usr/local/lib/node_modules/slappey/lib/Manager.js:51:25)
at PackageManager.initializeNPM (/usr/local/lib/node_modules/slappey/lib/Manager.js:34:21)
at PackageManager.<anonymous> (/usr/local/lib/node_modules/slappey/lib/Manager.js:27:24)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/slappey/lib/Manager.js:8:71
at new Promise (<anonymous>)
at __awaiter (/usr/local/lib/node_modules/slappey/lib/Manager.js:4:12) {
status: 1,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] [],
Buffer(222) [Uint8Array] [
110, 112, 109, 32, 69, 82, 82, 33, 32, 77, 105, 115,
115, 105, 110, 103, 32, 115, 99, 114, 105, 112, 116, 58,
32, 34, 116, 115, 99, 34, 10, 110, 112, 109, 32, 69,
82, 82, 33, 32, 10, 110, 112, 109, 32, 69, 82, 82,
33, 32, 84, 111, 32, 115, 101, 101, 32, 97, 32, 108,
105, 115, 116, 32, 111, 102, 32, 115, 99, 114, 105, 112,
116, 115, 44, 32, 114, 117, 110, 58, 10, 110, 112, 109,
32, 69, 82, 82, 33, 32, 32, 32, 110, 112, 109, 32,
114, 117, 110, 10,
... 122 more items
]
],
pid: 90159,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(222) [Uint8Array] [
110, 112, 109, 32, 69, 82, 82, 33, 32, 77, 105, 115,
115, 105, 110, 103, 32, 115, 99, 114, 105, 112, 116, 58,
32, 34, 116, 115, 99, 34, 10, 110, 112, 109, 32, 69,
82, 82, 33, 32, 10, 110, 112, 109, 32, 69, 82, 82,
33, 32, 84, 111, 32, 115, 101, 101, 32, 97, 32, 108,
105, 115, 116, 32, 111, 102, 32, 115, 99, 114, 105, 112,
116, 115, 44, 32, 114, 117, 110, 58, 10, 110, 112, 109,
32, 69, 82, 82, 33, 32, 32, 32, 110, 112, 109, 32,
114, 117, 110, 10,
... 122 more items
]
}
Hello, i got following Error Output while creating new project :
error log :
my quick fix:
changing following line on
Manager.js:into
install
tscas global module, and run slappey normally.