Today, the old error when installing dependencies, and given as follows:
! npm ERR Unexpected end of JSON input while parsing near '... Comment: https: // open'
because I Taobao mirror installed, therefore suspected to be an error, Internet searching for answers, to be performed under the following sentence Clear cache:
npm cache clean --force
And then reinstall the official image:
above sea level, set registry https://registry.npmjs.org/
Installed and then executed cnpm install the installation package installation is successful, start a project ok