Community
cancel
Showing results for 
Search instead for 
Did you mean: 
NK
New Contributor I
877 Views

Unable to install npm modules on gen 2

I am unable to install npm modules like serialport,jsupm_xbee,xbee-api,coap etc on the board.Even though my version compatibility is matching.It is giving me errors which say,"check proxy settings or bad network settings."Even ihad tried to access the apt config file and editing the proxy settings but there seems to be no apt folder in the board.

Any suggestions or insights to the problem would be greatly appreciated.

Tags (1)
2 Replies
Carlos_M_Intel
Employee
52 Views

Hi KS_Nathan

Do you have the following versions?

npm --version

1.4.28

node --version

v0.10.38

uname -a

Linux galileo 3.8.7-yocto-standard # 1 Tue Sep 29 22:16:33 GMT 2015 i586 GNU/Linux

Are you actually working behind a proxy? If you do, try with this: https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy

Also try with:

npm config set proxy http://myproxy.example.com:1080 http://myproxy.example.com:1080

npm config set https-proxy http://myproxy.example.com:1080 http://myproxy.example.com:1080

npm config set strict-ssl false

set HTTP_PROXY= http://myproxy.example.com:1080 http://myproxy.example.com:1080

set HTTPS_PROXY= http://myproxy.example.com:1080 http://myproxy.example.com:1080

npm --without-ssl --insecure install

-> http://jjasonclark.com/how-to-setup-node-behind-web-proxy/ http://jjasonclark.com/how-to-setup-node-behind-web-proxy/

If you are not working behind a proxy but you are still receiving that message, please post the full error message.

Regards,

Charlie

Pablo_M_Intel
Employee
52 Views

Hi KS_Nathan,

Were you able to test Carlos' suggestions? Did you have different results?

Regards,

Pablo

Reply