当前位置: 首页 > 知识库问答 >
问题:

我在Windows7上运行nodejs,在安装节点模块(mongodb驱动程序、mongoose等)时控制台中出现以下错误

葛宏爽
2023-03-14

我猜这与微软的VisualStudio有关,或者可能不是。

C:\user\u管理

> kerberos@0.0.12 install C:\user_management\node_modules\mongodb\node_modules\m
ongodb-core\node_modules\kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

C:\user_management\node_modules\mongodb\node_modules\mongodb-core\node_modules\k
erberos>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\n
ode_modules\node-gyp\bin\node-gyp.js" rebuild

Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.

C:\user_management\node_modules\mongodb\node_modules\mongodb-core\node_modules\
kerberos\build\kerberos.vcxproj(18,3): error MSB4019: The imported project "C:\
Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Impor
t> declaration is correct, and that the file exists on disk.

mongodb@2.0.39 node_modules\mongodb<br>
├── readable-stream@1.0.31 (isarray@0.0.1, inherits@2.0.1, core-util-is@1.0.1, s
tring_decoder@0.10.31)<br>
├── es6-promise@2.1.1<br>
└── mongodb-core@1.2.6 (bson@0.4.8, kerberos@0.0.12)

对此有任何建议,不胜感激!

共有1个答案

薛望
2023-03-14

答案在这里,只需将环境变量VCTargetsPath设置为文件Microsoft.Cpp.Default.props me的正确文件夹在这里C:\Program Files(x86)\MSBuild\Microsoft.Cpp\v4.0\V120。祝你好运

 类似资料:
  • 我在eclipse(Mars)中导入了一个项目,在我的pom.xml文件中有以下错误:“Missing artifact com.oracle:ojdbc7:jar:12.1.0.1” 这是代码: 我已经从Oracle下载了ojdbc7.jar,并尝试使用以下命令安装它: mvn安装:install-file-dgroupid=com.oracle-dartifactid=ojdbc7-dvers

  • 我是新来的节点,有点超出我的深度。在Mac OS X和Centos 6上都遇到此错误。发生在我尝试过的所有npm install xxx命令中。任何关于如何避免这一错误的建议都将不胜感激。 类似于npm,安装时会出现节点gyp错误,但我的用户名中没有空格,这就解决了他的问题。

  • E/AndroidRuntime: FATAL EXCEPTION: main Process:ooper.loop, PID: 6019ooper.java:135RuntimeException:无法启动活动ComponentInfo{android.app.}:hread.mainInflateException:二进制XML文件行#25:错误inflating类hread.java:525

  • 我用brew安装了mongodb。在osx上安装mongodb for xampp的php驱动程序时 我使用了以下命令:sudo/Applications/XAMPP/xamppfiles/bin/pecl install mongo 错误:'phpize'失败 终端中的完全错误

  • 问题内容: 我试图在Amazon Linux上为PHP安装mongodb驱动程序。运行时,出现错误消息: PEAR版本:1.9.5 PHP版本:5.3.29 我安装了gcc,这有助于我进一步进行安装直到出现此错误。 我能找到的最好的指南在这里:http : //jonathanhui.com/install-mongodb-amazon- linux PHP的指南:http : //php.net

  • Html代码: 结果: 在com.example.tests.finalizepo.main(finalizepo.java:41)的org.openqa.selenium.support.ui.webdriverwait.timeoutexception(webdriverwait.java:80)直到(fluentwait.java:261)由:org.openqa.selenium.nosu