今天在进行依赖安装的的时候,出现了一个nodejieba的报错,报错信息如下
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/yanyiwu/nodejieba/releases/download/2.4.1/nodejieba-v2.4.1-node-v72-win32-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for nodejieba@2.4.1 and node@12.18.3 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
看了一下,下载的路径是打不开的。
这个问题我遇到了两次:
第一次: 直接下载好nodejieba的包放到node_modules的目录下面就可以了。但是不知道为什么这次没有成功。
第二次: 使用cnpm和淘宝镜像进行安装
cnpm install