blog
blog copied to clipboard
执行bat安装依赖时候,服务端依赖报错 滞留在nodemon sharp(解决方案)
切换淘宝源,node版本使用16 链接
No description provided.
如果目前有博客网站使用需求的话暂时建议您去我的主要查找一个叫web_blog的项目,这个大型博客社区网站还在开发中
可以新建.npmrc文件,然后添加:
sharp_libvips_binary_host=https://npmmirror.com/mirrors/sharp-libvips
sharp_binary_host=https://npmmirror.com/mirrors/sharp
这样的话,就不需要因为一个包的问题导致需要切换全局镜像了
参考:https://sharp.pixelplumbing.com/install#chinese-mirror
因为client和server都使用到了插件sharp,同时node-sass在安装时也可能遇到网络问题。建议不使用.npmrc文件直接参考https://blogweb.cn/article/6064301711 进行换源
将sass也添加进.npmrc就好了
感觉相对麻烦,而且里面有三个package