npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

error on go build

Hi, im trying to setup.

node version v8.14.0
npm version 6.4.1

did a git clone. and in the folder a npm install a.

rendertron@2.0.1 build /dir
tsc

module.js:550
throw err;
^

Error: Cannot find module ‘…/lib/tsc.js’
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/dir/node_modules/.bin/tsc:2:1)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rendertron@2.0.1 build: tsc
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rendertron@2.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-12-04T16_42_04_209Z-debug.log

in that logfile i see this:

0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘run’, ‘build’ ]
2 info using npm@6.4.1
3 info using node@v8.14.0
4 verbose run-script [ ‘prebuild’, ‘build’, ‘postbuild’ ]
5 info lifecycle rendertron@2.0.1~prebuild: rendertron@2.0.1
6 info lifecycle rendertron@2.0.1~build: rendertron@2.0.1
7 verbose lifecycle rendertron@2.0.1~build: unsafe-perm in lifecycle true
8 verbose lifecycle rendertron@2.0.1~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/dir/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle rendertron@2.0.1~build: CWD: /dir
10 silly lifecycle rendertron@2.0.1~build: Args: [ ‘-c’, ‘tsc’ ]
11 silly lifecycle rendertron@2.0.1~build: Returned: code: 1 signal: null
12 info lifecycle rendertron@2.0.1~build: Failed to exec build script
13 verbose stack Error: rendertron@2.0.1 build: tsc
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:915:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid rendertron@2.0.1
15 verbose cwd /dir
16 verbose Linux 4.9.142-xxxx-std-ipv6-64
17 verbose argv “/usr/bin/node” “/usr/bin/npm” “run” “build”
18 verbose node v8.14.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error rendertron@2.0.1 build: tsc
22 error Exit status 1
23 error Failed at the rendertron@2.0.1 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

what could this be?