Closed hanxue closed 10 years ago
Terminal plugin is not Nodeclipse project. And it does not work on Windows that I am using.
What exactly do you install? How to reproduce? This is issue now is like question, not bug report.
By default launch app in Eclipse (Node.js or Java) gets no environment variables.
Developer can configure on Launch Configuration.
Nodeclipse also give options #124 "pass all environment variables of Eclipse to launched Node.js app"
see http://www.nodeclipse.org/history (also #122)
Launch logic is at launch()
https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.debug/src/org/nodeclipse/debug/launch/LaunchConfigurationDelegate.java#L59
and getEnvironmentVariables()
https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.debug/src/org/nodeclipse/debug/launch/LaunchConfigurationDelegate.java#L247
read code and propose changes.
Thanks @PaulVI for your quick response. Specifically I was trying to install the node-scrypt module.
dependencies -> "scrypt": "*"
into package.json
Results in this error message
> scrypt@3.0.1 install /Users/hanxue/Code/RTI/controlpanel/node_modules/scrypt2
> node-gyp rebuild
execvp(): No such file or directory
The Node application launcher has environment settings
Not for npm install
Why not just Ctrl+Alt+D npm install scrypt --save
? :)
What I got in Enide Studio and on Windows cmd: (that mean this issue of that library on Windows)
npm WARN package.json NodeProject1@0.1.0 No repository field.
npm http GET https://registry.npmjs.org/scrypt
npm http 304 https://registry.npmjs.org/scrypt
npm http GET https://registry.npmjs.org/scrypt/-/scrypt-3.0.1.tgz
npm http 200 https://registry.npmjs.org/scrypt/-/scrypt-3.0.1.tgz
> scrypt@3.0.1 install D:\Workspaces\Enide-Studio-2014-011-win64\NodeProject1\node_modules\scrypt
> node-gyp rebuild
D:\Workspaces\Enide-Studio-2014-011-win64\NodeProject1\node_modules\scrypt>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gypnpm ERR! scrypt@3.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@3.0.1 install script.
npm ERR! This is most likely a problem with the scrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls scrypt
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd D:\Workspaces\Enide-Studio-2014-011-win64\NodeProject1
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm
Find package GitHub repo and raise issue their to continue. There are quite a lot of Node packages that do not work [e.g. on Windows or generally]
I tried running
npm install
that requiresnode-gyp
, and it failedWhen I launch the Terminal plugin, this is the value of
$PATH
Contrast this with my default system
PATH
that has many more directories including/usr/local/bin
wherenode-gyp
is located