Node installation error resolution npm ERR! request to https://registry.

1,npm 安装出错 npm ERR! request to https://registry.npmjs.org/express failed, reason: unable to verify the first certificate

Solution: under settingsnpm config set strict-ssl false 

 

2,npm ERR! Unexpected end of JSON input while parsing near '...0ZdrK\nakdExSu6TFq5es'

Solution: npm cache clean --force or npm cache verify. Then npm install.

 

3. Execute the command react-native init AwesomeProject

[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.npm.taobao.org/react-native: tunneling socket could not be established, cause=Parse Error".

Taobao image is not available
Restore node

Solution: execute yarn config set registry https://registry.npmjs.org --global

Then delete the created project folder and re-init

Guess you like

Origin blog.csdn.net/qq_36355271/article/details/103933694