I am using buildroot (version 2013.08.1) to generate the filesystem and cross compiling tools to implement embedded linux on a i.MX233 processor (ARM architecture). I add the serialport module by running `make menuconfig` and then selecting: 

```
Target Package --> 
    Interpreter languages and scripting --> 
        [*]nodejs
            [*] NPM for the target
            [*] Express web application framework
            [*] CoffeeScript
            (socket.io jade serialport) Additional modules

```

When running the Makefile, I get the following output regarding the serialport module:

```
node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
node-pre-gyp http 200 https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
node-pre-gyp ERR! UNCAUGHT EXCEPTION 
node-pre-gyp ERR! stack Error: EPERM, chmod '/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/build/serialport/v1.4.0/Release/v8-3.11-linux-x64/serialport.node'
node-pre-gyp ERR! System Linux 3.13.0-24-generic
node-pre-gyp ERR! command "node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport
node-pre-gyp ERR! node -v v0.8.22
node-pre-gyp ERR! node-pre-gyp -v v0.5.19
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
npm ERR! serialport@1.4.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! `sh "-c" "node-pre-gyp install --fallback-to-build"` failed with 7
npm ERR! 
npm ERR! Failed at the serialport@1.4.0 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-pre-gyp install --fallback-to-build
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.13.0-24-generic
npm ERR! command "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/npm" "install" "express" "coffee-script" "socket.io" "jade" "serialport"
npm ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/npm-debug.log
npm ERR! not ok code 0
make: *** [/media/d/Documents/b-tesis/buildroot-2013.08.1/output/build/nodejs-0.8.22/.stamp_target_installed] Error 1

```

I have tried installing a different node version using `nvm`, but it does not work. I have not found any different solutions on Google.

I am doing this process in a machine with Ubuntu 14.04 and kernel version 3.13.0-24-generic.

I would appreciate any help with this issue.