I successfully used the create-react-app command, and the npm start command worked. But when I tried to install the bootstrap using npm install bootstrap@4.0.0 --save
, it gave an "ENETUNREACH" error. I am using npm version 5.8.0, nodejs version 10.15.2 and Ubuntu 19.10
PS I am a complete beginner, and I am following an online react course.
it seems you are behind a proxy, you could do this
npm config set proxy null
npm config set https-proxy null
npm config set registry http://registry.npmjs.org/
The first two lines will remove proxy's if there any.
Third line will make npm download from the official package registry.
here's an article you could read on How to run npm Behind A Proxy Server - a step-by-step guide
It looks like current installed npm
is not compatible with Node.js version you are using. You'll probably need to update your npm using
npm install npm@latest -g
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.