Failed at the bitcore-node@3.1.3 preinstall script './scripts/download ' How to set up a Linux proxy (proxy)

Source: Internet
Author: User
Tags curl

The conditions for this problem occur are:

Install NPM on Linux in the Bitcore official form, with an error:

Downloading bitcoin:https://github.com/bitpay/bitcoin/releases/download/v0.12.1-bitcore-4/
NPM err! Linux 3.16.0-4-686-pae
NPM err! argv "/home/user/.nvm/versions/node/v4.6.0/bin/node" "/HOME/USER/.NVM/VERSIONS/NODE/V4.6.0/BIN/NPM" "Install" "-G" "Bitcore"
NPM err! Node v4.6.0
NPM err! NPM v2.15.9
NPM err! Code elifecycle
NPM err! [Email protected] Preinstall:./scripts/download
NPM err! Exit Status 22
NPM err!
NPM err! Failed at the [email protected] Preinstall script './scripts/download '.
NPM err! Likely a problem with the Bitcore-node package,
NPM err! Not with NPM itself.
NPM err! Tell the author, fails on your system:
NPM err!./scripts/download
NPM err! You can get the information on what to open a issue for this project with:
NPM err! NPM Bugs Bitcore-node
NPM err! Or if that isn ' t available, you can get their info via:
NPM err!
NPM err! NPM owner LS Bitcore-node
NPM err! There is likely additional logging output above.
NPM err! Please include the following file with any support request:
NPM err! /home/user/npm-debug.log

The various NPM sources have since been replaced and cannot be resolved. We all know the Chinese wall is very high, so fq, but the method of VPN with Linux is more complicated, so I installed the ccproxy on my own VPN computer, as a Linux agent, then set up NPM proxy under Linux:

NPM Config set proxy http://server:portnpm config set https-proxy http://server:port after Setup can be used: NPM config ls to view the NPM source and proxy set is not what you want. After setting up, you can see the connection information in Ccproxy, but still can't download it. Further discovery was the fault in the downloading bitcoin:https://github.com/bitpay/bitcoin/releases/download/v0.12.1-bitcore-4/, This download is generally used in the way of curl, so setting up the NPM agent does not solve the problem of curl. Then I set the global proxy, at the end of the ~.BASHRC add the following command: Export http_proxy=http://server:port "Export https_proxy=" Http://server:port " export ftp_proxy= "Http://server:port"Then run the source ~/.BASHRC let the configuration take effect, it should be OK, but the result is still no. What's the problem? Because I run the source ~/.BASHRC command is wrong, it is said that this command is only valid for the current seesion, so you have to install the Bitcore interface to use, it turns out that this is really the problem. However, there is a problem: when I installed the Bitcore, and then installed the BWS and insight, the results found that BWS and insight between the communication between the wrong, but the BWS and insight alone to test, can be. Later found to be a proxy problem, because I set the proxy before, so the data are sent to my other computer. So after using the proxy, remember to reset: unset http_proxyAnd the other two, the blood and tears of the lesson AH.

Failed at the [email protected] Preinstall script './scripts/download ' How to set up a Linux proxy (proxy)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.