npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/compile-stylus - Not found
npm ERR! 404
npm ERR! 404 'compile-stylus@*' is not in this registry. npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! D:\NodeJs\node_cache\_logs\2024-08-21T05_32_36_011Z-debug-0.log
解决办法:
npm config set strict-ssl false
npm cache clean --force
npm config set registry https://registry.npm.taobao.org/
git config --global http.sslverify "false"
git config --global url."https://".insteadOf git://
npm install --registry=https://registry.npm.taobao.org
npm install -g npm@latest
sudo ntpdate -u time.nist.gov