美文网首页
install nodejs on raspberry pi

install nodejs on raspberry pi

作者: chuck_shen | 来源:发表于2017-10-13 14:29 被阅读9次

    Just follow the steps below.

    Download Node.js source Raspberry Pi Model A, B, B+ and Compute Module

    wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv6l.tar.gz 
    tar -xvf node-v4.0.0-linux-armv6l.tar.gz 
    cd node-v4.0.0-linux-armv6l
    

    Raspberry Pi 2 Model B

    wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv7l.tar.gz 
    tar -xvf node-v4.0.0-linux-armv7l.tar.gz 
    cd node-v4.0.0-linux-armv7l
    

    Copy to /usr/local

    sudo cp -R * /usr/local/
    

    That's it! To check Node.js is properly install and you have the right version, run the command node -v

    相关文章

      网友评论

          本文标题:install nodejs on raspberry pi

          本文链接:https://www.haomeiwen.com/subject/bxuzyxtx.html