There's something wrong with npm install vue-resource.

such a problem occurs when executing npm install vue-resource-- save

D:myProjecttranslate > npm install vue-resource-- save
npm err! Code ENOTFOUND
npm err! Errno ENOTFOUND
npm err! Network request to https://registry.npmjs.org/vu. failed, reas
on: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm err! Network This is a problem related to network connectivity.
npm err! Network In most cases you are behind a proxy or have bad network settin
gs.
npm err! Network
npm err! Network If you are behind a proxy, please make sure that the
npm err! Network "proxy" config is set properly. See: "npm help config"
npm err! A complete log of this run can be found in:
npm err! C:UsersAdministratorAppDataRoamingnpm-cache_logs2018-07-23T0

look at the hint that it is possible to make the network, but I can install jQuery,bootstrap and so on successfully, that is, the vue-resource installation is not successful. What"s going on? ask Daniel for help.

Mar.29,2021

npm is not stable. It is recommended to switch to cnpm.
in addition, vue recommends axios for ajax,resource is no longer maintained.


has been solved, network problems


cnpm install Taobao image


or it is recommended to install cnpm npm installation really often report some messy error

Menu