Skip to content

MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "14.0", "4.0"。 what‘s wrong? #548

Closed
@tosone

Description

@tosone

MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "14.0", "4.0"。 what‘s wrong?

Activity

ErisDS

ErisDS commented on Nov 11, 2015

@ErisDS
Member

Please can you provide the following information:

  • terminal logs of failed install (run npm install sqlite3 --loglevel=info)
  • node-sqlite3 version you tried to install
  • node version you are running
  • operating system and architecture you are running, e.g. Windows 7 64 bit.
neechange

neechange commented on Nov 12, 2015

@neechange

我也遇到了WIN10 64位
真搞不懂为什么不发布编译好的版本

neechange

neechange commented on Nov 12, 2015

@neechange

应该是NET FRAMEWORK版本高了,每个使用者使用一个几M的模块要安装G级的VS。这是什么理论

tosone

tosone commented on Nov 13, 2015

@tosone
Author

i installed the sqlite 3.1.1. my os is win10 x64. node version is 4.2.2. npm is the new version now.
After i uninstall Express visual studio 2016 for Web and Express visual studio 2016 for Desktop.......
and install Commity visual studio 2016 only,,,,it worked....why?
sometimes i open a sln file, it need to identification that file which is for web or desktop...i think it has something wrong with node-gyp.

ronnieyuyiwei

ronnieyuyiwei commented on Dec 13, 2015

@ronnieyuyiwei

So it is said that if I install Commity visual studio 2016 the problem will be solved?

ghost

ghost commented on May 15, 2016

@ghost

actually after I installed vs2015 this problem has not been saved either.

ronnieyuyiwei

ronnieyuyiwei commented on May 16, 2016

@ronnieyuyiwei

其实把win10的framework版本改一下就好了,已经解决

cesar-blog

cesar-blog commented on Jun 29, 2017

@cesar-blog

@ronnieyuyiwei 怎么解决的呢?分享下呢

ronnieyuyiwei

ronnieyuyiwei commented on Jul 2, 2017

@ronnieyuyiwei

@cesar-blog 这似乎是很久以前我在win10安装mongodb数据库时遇到的问题,当时的解决办法就是把win10的framework降低一个版本(应该是3.5版本)即可(具体方法自己查一下,打个勾就好了)。现在版本的软件已经可以完美兼容了,不会再出现这个问题了。另外上面所说的装vs2016 或者2015我当时试过,不靠谱。

F-loat

F-loat commented on Dec 6, 2017

@F-loat

image
Just add this.

navono

navono commented on Apr 10, 2018

@navono

first:

yarn global add --production windows-build-tools

then:

npm config set msvs_version 2015 --global

forconz

forconz commented on Nov 2, 2020

@forconz

如果npm install --msvs_version 2015解决不了问题,试试

通过配置淘宝的镜像源解决,首先配置淘宝的镜像源
npm config set registry https://registry.npm.taobao.org

  • 然后在 ~/.npmrc 加入下面内容

sass_binary_site=https://npm.taobao.org/mirrors/node-sass/

注:.npmrc 文件位于:

win:C:\Users\[你的账户名称]\.npmrc
linux:直接使用 vi ~/.npmrc

项目根目录下执行命令:npm install

lonexw

lonexw commented on Sep 29, 2021

@lonexw

在控制面板/程序和功能/启用或关闭 Windows 功能中启用了 .NET Framework 3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ErisDS@neechange@navono@tosone@forconz

        Issue actions

          MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "14.0", "4.0"。 what‘s wrong? · Issue #548 · TryGhost/node-sqlite3