dtsmake icon indicating copy to clipboard operation
dtsmake copied to clipboard

condense not found

Open Anchakor opened this issue 8 years ago • 10 comments

Hi, I tried installing your tool, installed NPM, used the command npm i dtsmake -g but running it I get this error:

$ dtsmake -s libraries/plastiq.js 
v:3.9.6

dtsmake started.
[CMD]node "/home/anchakor/currentDirectory/node_modules/tern/bin/condense" libraries/plastiq.js --no-spans
[SRC]libraries/plastiq.js
[INFO] tern/condense error
Error: Command failed: node "/home/anchakor/currentDirectory/node_modules/tern/bin/condense" libraries/plastiq.js --no-spans
module.js:442
    throw err;
    ^

Error: Cannot find module '/home/anchakor/currentDirectory/node_modules/tern/bin/condense'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:456:3

Anchakor avatar Jun 22 '16 19:06 Anchakor

You'll have to install tern manually by using npm install tern (use the -g option if you feel it's suitable)

CelsoSantos avatar Jul 15 '16 15:07 CelsoSantos

+1

walnutfalls avatar Nov 17 '16 02:11 walnutfalls

+1

genhirano avatar Jan 25 '17 07:01 genhirano

@CelsoSantos I have dtsmake and tern both installed globally. Error still occurs for me, seems dtsmake is looking for tern condense under local node_modules, rather than finding it in the global bin path?

intel352 avatar Jun 09 '17 16:06 intel352

Workaround is to add tern as a dev dependency:

npm install --save-dev tern

stevenqzhang avatar Dec 16 '17 06:12 stevenqzhang

I've installed tern as global and as devDependencies, but still get this error:

[CMD]node "C:\GitHub\Bravey\node_modules/tern/bin/condense" src --no-spans
[SRC]src
[INFO] tern/condense error
Error: Command failed: node "C:\GitHub\Bravey\node_modules/tern/bin/condense" src --no-spans
fs.js:675
  return binding.read(fd, buffer, offset, length, position);
                 ^

Error: EISDIR: illegal operation on a directory, read

nippur72 avatar Dec 31 '17 11:12 nippur72

+1

PeterGabriel2 avatar Mar 11 '18 01:03 PeterGabriel2

+10086

changzhn avatar Dec 06 '19 07:12 changzhn

+10086

+10087

Delevin888 avatar Jun 29 '22 05:06 Delevin888

+10088

yyman001 avatar Aug 17 '22 01:08 yyman001