global installation is not working because of hardcoded path of prototypes
See original GitHub issueHi, 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:
- Created 7 years ago
- Reactions:1
- Comments:20 (15 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah you should be sorry that you had a vacation. 😉
Hello, here is the error that I keep getting after having installed node-latest (via nvm), and using global extendscriptr:
The local version works as expected, though.
@fabiantheblind you asked me whether the node_modules folders are flattened or nested, this is a screenshot: (hopefully I’m looking in the right folder…!) Thank you!