Skip to content

node js arm 7 cross compile #629

Closed
Closed

Description

@rebecca-eujin
  • Node.js Version: node-v0.12.0-linux-arm-pi
  • OS:windows 7
  • Scope (install, code, runtime, meta, other?): install(?)/use
  • Module (and version) (if relevant): arm7

Im having issues using files that have been provided by Node js for arm7 (android).
Currently, Im trying to run node js files in arm7.
However, Im not sure how should I use the files that have been provided.
I have tried putting files in /system/bin and command node by running node file in node-v0.12.0-linux-arm-pi/bin.
However, it provides error by the node file does not exist.
How should I solve this problem?

Activity

  1. gibfahn commented on May 19, 2017

    @gibfahn
    Member

    OS:windows 7

    I assume you're running Raspbian not Windows 7 right?

    Which file did you put in /system/bin?

    Assuming you're using the terminal, you can navigate to node-v0.12.0-linux-arm-pi/bin and do:

    ls                # Should show node npm
    ./node            # Runs node
  2. rebecca-eujin commented on May 22, 2017

    @rebecca-eujin
    Author

    yes I did the same way however it provides error by file does not exist

  3. gibfahn commented on May 22, 2017

    @gibfahn
    Member

    What is the output of the ls command?

  4. rebecca-eujin commented on May 23, 2017

    @rebecca-eujin
    Author

    node npm

  5. gibfahn commented on May 23, 2017

    @gibfahn
    Member

    What about ls -l?

  6. gibfahn commented on May 26, 2017

    @gibfahn
    Member

    Short answer:

    To install manually do:

    wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-armv7l.tar.gz
    tar -xf node-v6.10.3-linux-armv7l.tar.gz --directory /usr/local --strip-components 1

    This will put the ./bin directory in /usr/local/bin, which should be in your $PATH already. You can verify that it worked with:

    which node
    which npm
    node --version
    npm --version

    Alternatives:

    If you want to use a package manager, see this guide. For older Linux distros you might need to see these instructions.

    If you want to install node manually, there is no "installation" on Linux per se, you just need to extract the tarball, and make sure the node and npm binaries in the ./bin subdirectory are somewhere in your path.

    I find nvm is useful for managing node installations (it will download, extract, and add to path for you). If you want to do things manually, you can do something like:

  7. gireeshpunathil commented on Mar 11, 2018

    @gireeshpunathil
    Member

    closing as answered, please re-open if this is still outstanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions