Unable to add serialport (nodejs module) when generating filesystem and cross-compiling tools for an ARM processorEmbedded Linux- Cross compiling firefox for arm

Applicability of Single Responsibility Principle

Method to test if a number is a perfect power?

System.debug(JSON.Serialize(o)) Not longer shows full string

Purchasing a ticket for someone else in another country?

What does the word "Atten" mean?

Pre-amplifier input protection

Would a high gravity rocky planet be guaranteed to have an atmosphere?

Gears on left are inverse to gears on right?

Two monoidal structures and copowering

How to write papers efficiently when English isn't my first language?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

Failed to fetch jessie backports repository

Class Action - which options I have?

Lay out the Carpet

Trouble understanding the speech of overseas colleagues

How does the UK government determine the size of a mandate?

Is there a problem with hiding "forgot password" until it's needed?

How does buying out courses with grant money work?

What is the intuitive meaning of having a linear relationship between the logs of two variables?

Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?

Large drywall patch supports

Is this apparent Class Action settlement a spam message?



Unable to add serialport (nodejs module) when generating filesystem and cross-compiling tools for an ARM processor


Embedded Linux- Cross compiling firefox for arm













1















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.










share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    1















    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.










    share|improve this question
















    bumped to the homepage by Community yesterday


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      1












      1








      1


      0






      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.










      share|improve this question
















      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.







      embedded buildroot






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 1 '14 at 12:28









      polym

      6,81653158




      6,81653158










      asked Jul 1 '14 at 0:09









      NicolásNicolás

      1063




      1063





      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?






          share|improve this answer






























            0














            You need to have root permissions to install these native modules like serialport.



            Go into /buildroot/package/nodejs/nodejs.mk and change



            $(NPM) install -g $(NODEJS_MODULES_LIST)


            to



            $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)





            share|improve this answer






















              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f140063%2funable-to-add-serialport-nodejs-module-when-generating-filesystem-and-cross-co%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?






              share|improve this answer



























                0














                Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?






                share|improve this answer

























                  0












                  0








                  0







                  Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?






                  share|improve this answer













                  Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 14 '14 at 8:58









                  Thomas PetazzoniThomas Petazzoni

                  29814




                  29814























                      0














                      You need to have root permissions to install these native modules like serialport.



                      Go into /buildroot/package/nodejs/nodejs.mk and change



                      $(NPM) install -g $(NODEJS_MODULES_LIST)


                      to



                      $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)





                      share|improve this answer



























                        0














                        You need to have root permissions to install these native modules like serialport.



                        Go into /buildroot/package/nodejs/nodejs.mk and change



                        $(NPM) install -g $(NODEJS_MODULES_LIST)


                        to



                        $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)





                        share|improve this answer

























                          0












                          0








                          0







                          You need to have root permissions to install these native modules like serialport.



                          Go into /buildroot/package/nodejs/nodejs.mk and change



                          $(NPM) install -g $(NODEJS_MODULES_LIST)


                          to



                          $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)





                          share|improve this answer













                          You need to have root permissions to install these native modules like serialport.



                          Go into /buildroot/package/nodejs/nodejs.mk and change



                          $(NPM) install -g $(NODEJS_MODULES_LIST)


                          to



                          $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 6 '18 at 14:36









                          SamSam

                          1134




                          1134



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f140063%2funable-to-add-serialport-nodejs-module-when-generating-filesystem-and-cross-co%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              -buildroot, embedded

                              Popular posts from this blog

                              Frič See also Navigation menuinternal link

                              Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant

                              fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown “element blank” The 2019 Stack Overflow Developer Survey Results Are In“tar: unrecognized option --warning” during 'apt-get install'How to fix Fontconfig errorHow do I figure out which font file is chosen for a system generic font alias?Why are some apt-get-installed fonts being ignored by fc-list, xfontsel, etc?Reload settings in /etc/fonts/conf.dTaking 30 seconds longer to boot after upgrade from jessie to stretchHow to match multiple font names with a single <match> element?Adding a custom font to fontconfigRemoving fonts from fontconfig <match> resultsBroken fonts after upgrading Firefox ESR to latest Firefox