npm安装某些包在windows下遇到的错误
来源:互联网 发布:淘宝服装修图步骤 编辑:程序博客网 时间:2024/05/19 16:35
gyp ERR! configure errorgyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.gyp ERR! stack at PythonFinder.failNoPython (E:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:19)gyp ERR! stack at PythonFinder.<anonymous> (E:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:480:16)gyp ERR! stack at E:\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29gyp ERR! stack at FSReqWrap.oncomplete (fs.js:114:15)gyp ERR! System Windows_NT 10.0.15048gyp ERR! command "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"gyp ERR! cwd G:\gulp-angular\node_modules\bufferutilgyp ERR! node -v v7.7.1gyp ERR! node-gyp -v v3.5.0gyp ERR! not ok> utf-8-validate@1.2.2 install G:\gulp-angular\node_modules\utf-8-validate> node-gyp rebuildG:\gulp-angular\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "E:\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )gyp ERR! configure errorgyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.gyp ERR! stack at PythonFinder.failNoPython (E:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:19)gyp ERR! stack at PythonFinder.<anonymous> (E:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:480:16)gyp ERR! stack at E:\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29gyp ERR! stack at FSReqWrap.oncomplete (fs.js:114:15)gyp ERR! System Windows_NT 10.0.15048gyp ERR! command "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"gyp ERR! cwd G:\gulp-angular\node_modules\utf-8-validategyp ERR! node -v v7.7.1gyp ERR! node-gyp -v v3.5.0gyp ERR! not ok
这个错误是Windows编译的问题,要解决
一是换Linux,不得不说Linux环境比windows好太多
当然很多人怕麻烦那就只有安装编译环境了,错误说缺少python环境就先装python。装完后,我估计会提醒没有c++的组件继续报错,然后在安装vs就可以了
解决方法:
安装Python2.7 , 安装vs2015社区版
还有向大家提个醒,最好不要在Windows环境下使用sass,需要Ruby环境,很麻烦,我曾经在这个问题上反复打转,最终还是放弃写sass。
0 0
- npm安装某些包在windows下遇到的错误
- 在windows 下安装nodejs 和npm
- Windows 下安装NPM
- windows 下安装 npm
- Windows 下安装NPM
- Windows 下安装NPM
- Windows 下安装NPM
- Windows下安装Python包(Numpy)的错误
- 在windows下安装opengrok遇到的一个问题
- 在Windows下安装Hadoop环境遇到的问题
- rails在windows下安装遇到的问题
- 在Windows下安装Hadoop遇到的几个问题
- 在windows下安装sphinx,MySQL support 遇到的问题
- mysql在64位windows下安装遇到的问题
- 在windows下如何安装lxml的python包
- 如何在windows下安装openstack的依赖包
- 在windows下校验Oracle数据库安装包的完整性
- 在Windows下安装LightGBM的Python包
- python设置代理ip爬取知乎图片
- Visual Studio 2017全面上线!
- 进程中的信号量机制
- PHP四种基本排序算法
- ***POJ 3280 Cheapest Palindrome
- npm安装某些包在windows下遇到的错误
- 全局序列号---天长地久有时尽, 此恨绵绵无绝期
- 获取元素
- 基于nodejs模拟浏览器post请求爬取json数据
- win7 架设svn服务器
- XUtil3.0下载
- 详细讲解mvc与三层架构的区别
- 基础矩阵
- 日常(不要正经)