Am Freitag, 23. Mai 2014 08:46:14 UTC+2 schrieb Ingo Albers:
>
> Am Donnerstag, 22. Mai 2014 18:02:56 UTC+2 schrieb Kevin Ingwersen:
>>
>>
>> Am 22.05.2014 um 17:51 schrieb Aria Stewart <[email protected]>: 
>>
>> > 
>> > On May 22, 02014, at 10:04, Ingo Albers <[email protected]> wrote: 
>> >> 
>> >> For a new project I need some modules (serialport, socket.io, 
>> express) but I can't use npm on my device. I tried building the modules on 
>> an ARM QEMU but those modules didn't work. 
>> > 
>> > Why can’t you use npm? What have you tried? 
>> He is probably using a non-shell interactive thing…like FTP. I therefore 
>> would suggest to: 
>>
>>         - Set CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS correctly to point and 
>> use your NDK installation. 
>>         - npm install under this dev environment. node-gyp should pick 
>> these variables up and use them accordingly. As a result, you should have 
>> ARM binaries. 
>>         - Copy the resulting node_modules foder to your 
>> device/application folder and make sure nodejs can pick it up.
>
>
> I was following this tutorial to build node.js: 
> https://gist.github.com/modeswitch/114c9bd55d800df242a2
> So I only put the node executable on the device itself. 
>
> Thank you Kevin, I will try to do it like that.
>

Regarding my previous mail, that has not been published so far. I also 
tried using a newer node/npm and serialport version but then I get this 
error:

> [email protected] install 
/home/ingo/23newfolder/box/node_modules/serialport
> node-gyp rebuild

Traceback (most recent call last):
  File 
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", 
line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit 
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(child_process.js:1046:12)
gyp ERR! System Linux 3.11.0-20-generic
gyp ERR! command "node" 
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" 
"rebuild"
gyp ERR! cwd /home/ingo/23newfolder/box/node_modules/serialport
gyp ERR! node -v v0.11.13
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the serialport 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 serialport
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.11.0-20-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/ingo/23newfolder/box
npm ERR! node -v v0.11.13
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ingo/23newfolder/box/npm-debug.log
npm ERR! not ok code 0
 

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/849296f0-aa00-45d9-ad3c-39daaff4d9a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to