node-gyp rebuild error while installing node modules

后端 未结 1 1051
清歌不尽
清歌不尽 2021-01-28 01:55

I tried installing zerorpc package on node using \'npm install zerorpc\' and I am getting following error. The error is because node-gyp fails to rebuild.

npm ht         


        
相关标签:
1条回答
  • 2021-01-28 02:40

    I upgraded it to 4.3.0 version using

    sudo npm cache clean -f
    sudo npm install -g n
    sudo n 4.3.0
    

    and then I used

    sudo npm install zerorpc
    

    and it worked!

    As for the bash: '/usr/bin/node: No such file or directory' error, I did

    sudo apt-get install node-legacy
    
    0 讨论(0)
提交回复
热议问题