Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows 有此问题的请参考]在Windows10环境下提示需要SDK的错误 #2

Open
hejiheji001 opened this issue Apr 6, 2017 · 11 comments

Comments

@hejiheji001
Copy link

Windows10 64位系统
python 2.7.13
npm 4.2.0

安装提示
qq 20170406141411

尝试过 nodejs/node-gyp#802
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

由于不是很懂这方面 所以烦请查询一下原因 谢谢~

@lijinma
Copy link
Owner

lijinma commented Apr 6, 2017

@hejiheji001
Copy link
Author

我已经试着装了win10的sdk 再装个试试看吧 多谢~

@lijinma
Copy link
Owner

lijinma commented Apr 6, 2017

😯 恩,试一下,加油。

@hejiheji001
Copy link
Author

hejiheji001 commented Apr 6, 2017

尝试后出现 CL.exe not found 的问题 经查 需要 Visual C++ 的相关库

解决方案 在 Visual Studio 2015 里面新建一个 Visual C++ 的项目后 自动安装所需文件即可

问题解决啦~

个人感觉 其实我应该可以直接通过 【在VS中新建C++项目】的方式来修复这个问题

感觉这个解决方案可以补充到 Troubleshooting 里~

@lijinma
Copy link
Owner

lijinma commented Apr 6, 2017

太谢谢你了,是一个宝贵的经验。

@lijinma lijinma changed the title 在Windows10环境下提示需要SDK的错误 [Windows 有此问题的请参考]在Windows10环境下提示需要SDK的错误 Apr 7, 2017
@ax4
Copy link

ax4 commented Apr 11, 2017

或许可以尝试一下 https://github.com/nodejs/node-gyp#installation 的 windows解决方案。

它提供了两个option, 一个是直接通过 npm install 解决的

npm install --global --production windows-build-tools

另外一个则是通过新建 Visual C++项目来解决的

@lijinma
Copy link
Owner

lijinma commented Apr 11, 2017

@ax4 赞啊,谢谢分享。

@liuzhuzhu
Copy link

您好,哥哥。我在window下安装wechat_spider 也会报一楼截图所示错误,安装了winSDK后,还会出现这种问题,我使用的是idea编辑器,把代码下下来之后,需要做什么操作吗?比如编译之类的操作(/bin.wechat_spider),还是说下载下来代码之后什么都不需要做,直接按照命令一步一步操作?

@lijinma
Copy link
Owner

lijinma commented Apr 19, 2017

@liuzhuzhu 你如果直接 clone 下来代码,使用 npm install,安装成功后,执行 ./bin/wechat_spider

@liuzhuzhu
Copy link

还是不行,npm install 还是会有错误 ,我已经安装了winSDK,我现在的情况是node Python 都已经安装好了,就是在执行npm install wechat_spider -g 时出现了异常,我是第一次做Python相关的东西,有好多东西都不太懂,麻烦您指导下.不胜感激!!

@lijinma
Copy link
Owner

lijinma commented Apr 19, 2017

@liuzhuzhu 错误重新开一个 issue 吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants