我正在为一个有角度的项目做DECLARE @val float = 2000000.890
select convert(nvarchar(50),CAST(@val AS numeric(16,4)))
,这是我面临的问题
npm install
然后
> grpc@1.20.0 install D:\professional-workspace\Gentrick\Risco\risco-web\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.20.0/node-v72-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.20.0 and node@12.16.1 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
环境:-
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.20.0 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.20.0 install script.
我也尝试安装python,但这也没有帮助。
答案 0 :(得分:3)
该版本的grpc与该版本的Node不兼容。您可以通过使用grpc的较新版本或Node的较旧版本来解决此问题。目前,grpc的最新版本1.24.2与Node 12.x兼容。
答案 1 :(得分:0)
最新版本的节点不支持它,11.x版本支持gyp,我遇到了同样的问题,我安装了版本node-v11.15.0并成功构建。恢复当前版本的节点,请从此处下载{{ 3}}