且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

node-gyp 构建错误 windows x64

更新时间:2022-03-22 23:07:10

npm config set msvs_version 2013 --global 对我有用,因为我使用 VS 节点工具,你不需要每次都指定 msvs_version你做一个 npm 安装.

npm config set msvs_version 2013 --global worked for me as I use VS node tools and you dont need to specify msvs_version each time you do an npm install.

我遇到了一个问题,即 npm 的配置 (c:\Users\username\.npmrc) 有一个条目 msvs_version=2012 已过期.

I had an issue whereby npm's config (c:\Users\username\ .npmrc) has an entry msvs_version=2012 which was out of date.