question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

global installation is not working because of hardcoded path of prototypes

See original GitHub issue

Hi, I’ve installed (apparently successfully, few warnings about unmet dependencies) extendscriptr, but when I try to run a simple:

$ extendscriptr --script ./test.js --output ./test_enc.js

I get this error:

Running extendscriptr with following options:
--script: ./test.js
--output: ./test_enc.js
--target: undefined (optional)
fs.js:584
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open './node_modules/extendscript.prototypes/lib/extendscript.prototypes.js'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.readFileSync (fs.js:431:33)
    at Object.<anonymous> (/usr/local/lib/node_modules/extendscriptr/index.js:27:29)
    at Module._compile (module.js:397:26)
    at Object.Module._extensions..js (module.js:404:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:429:10)
    at startup (node.js:139:18)

Any idea about the reason why this occurs? Thank you!

Davide

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:20 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
ff6347commented, Sep 30, 2016

and in vacations. Sorry about that.

Yeah you should be sorry that you had a vacation. 😉

1reaction
undavidecommented, Jul 19, 2016

Hello, here is the error that I keep getting after having installed node-latest (via nvm), and using global extendscriptr:

$ which extendscriptr
/Users/davidebarranca/.nvm/versions/node/v6.3.0/bin/extendscriptr
$ extendscriptr --script ./in.js --output ./out.js
Running extendscriptr with following options:
--script: ./in.js
--output: ./out.js
--target: undefined (optional)
fs.js:640
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open './node_modules/extendscript.prototypes/lib/extendscript.prototypes.js'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.fs.readFileSync (fs.js:508:33)
    at Object.<anonymous> (/Users/davidebarranca/.nvm/versions/node/v6.3.0/lib/node_modules/extendscriptr/index.js:27:29)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
$ node --version
v6.3.0
$ npm --version
3.10.3

The local version works as expected, though.

@fabiantheblind you asked me whether the node_modules folders are flattened or nested, this is a screenshot: folders (hopefully I’m looking in the right folder…!) Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - npm global install does not add packages to PATH ...
I'm using win8. 1 and I found that the nodejs installer didn't add the path to global node modules to the system PATH....
Read more >
Discussion: NPM Migration Path · Issue #2467 - GitHub
I've tried moving a few projects from Bower to NPM, and the obvious problem that I always get stuck on is "what do...
Read more >
cwe.ac.id
... the .dat package file because the file system path to the .dat package file can be hardcoded. ICU will automatically set the...
Read more >
CUDA C++ Best Practices Guide
CUDA C++ Best Practices Guide. The programming guide to using the CUDA Toolkit to obtain the best performance from NVIDIA GPUs.
Read more >
Installation - Vue.js
Direct <script> Include. Simply download and include with a script tag. Vue will be registered as a global variable. Don't use the minified...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found