npm is set as the source of taobao

npm i [email protected] -g switch version

npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm i

set NODE_OPTIONS=--openssl-legacy-provide

Guess you like

Origin blog.csdn.net/a2831942318/article/details/128696161