binding.gyp not found 安装java npm 报错

npm install java 报错 

binding.gyp not found 

1.更新npm

1.sudo npm cache clean -f

2. sudo npm install npm -g

2.重写安装

sudo npm uninstall node-gyp -g

sudo npm uninstall node-gyp

sudo npm install node-gyp -g

https://blog.csdn.net/StillCity/article/details/77483085

原文地址:https://www.cnblogs.com/chenyi4/p/12627422.html