1. 程式人生 > >npm安裝某些包在windows下遇到的錯誤

npm安裝某些包在windows下遇到的錯誤

gyp ERR! configure error
gyp 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:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:114:15) gyp ERR! System Windows_NT 10.0.15048 gyp 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\bufferutil gyp ERR! node -v v7.7.1 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok > [email protected] install G:\gulp-angular\node_modules\utf-8-validate > node-gyp rebuild G:\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 error gyp 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:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:114:15) gyp ERR! System Windows_NT 10.0.15048 gyp 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-validate gyp ERR! node -v v7.7.1 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok

這個錯誤是Windows編譯的問題,要解決
一是換Linux,不得不說Linux環境比windows好太多
當然很多人怕麻煩那就只有安裝編譯環境了,錯誤說缺少python環境就先裝python。裝完後,我估計會提醒沒有c++的元件繼續報錯,然後在安裝vs就可以了
解決方法:
安裝Python2.7 , 安裝vs2015社群版

還有向大家提個醒,最好不要在Windows環境下使用sass,需要Ruby環境,很麻煩,我曾經在這個問題上反覆打轉,最終還是放棄寫sass。

相關推薦

npm安裝某些windows遇到的錯誤

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR!

mac安裝tesserocr的流程和錯誤(Failed building wheel for tesserocr)

按以下是步驟順序安裝: brew install imagemagick brew install tesseract 在命令列輸入tesseract即可驗證是否成功安裝tesseract pip3 install tesserocr 如果最後一步出現Failed buildin

python機器學習 Windows pip安裝 scikit-learn numpy scipy

1.到PIP的目錄中C:\Python34\Scripts;2. 2.1  pip安裝numpy pip install numpy 2.2  pip安裝sklearn pip install -U scikit-learn   2.3  pip安裝scipy(注:sklearn 依賴

使用npm安裝一些失敗了,更換npm

res registry conf gpo 指定 com npm score 使用 鏡像使用方法(三種辦法任意一種都能解決問題,建議使用第三種,將配置寫死,下次用的時候配置還在): 1.通過config命令 npm config set registry https://r

NodeJs、NPM安裝配置步驟(windows版本)

高效 node 管理 tar 學習 node.js tps .com 系統 Node.js 是一個基於 Chrome V8 引擎的 JavaScript 運行環境。Node.js 使用了一個事件驅動、非阻塞式 I/O 的模型,使其輕量又高效。 Node.

Centos7.0系統上使用yum安裝相關時出現KeyboardInterrupt錯誤

目錄 環境 症狀 問題原因 解決方案 相關文件 報錯編碼 環境 系統平臺:Linux x86-64 Red Hat Enterprise Linux 7 版本:4.1.1 症狀   安裝過程中,使用yum命令安裝相關包時,出現Keyboard

windows安裝Jupyter Notebook Windows的Python 3.6.1的下載與安裝(適合32bits和64bits)(圖文詳解)

    這是我自定義的Python 的安裝目錄 (D:\SoftWare\Python\Python36\Scripts) 1、Jupyter Notebook 和 pip   為了更加方便地寫 Python 程式碼,還需要安裝 Jupyter notebook。 利用 pip 安裝

npm安裝依賴報錯

最近在新下載了一個專案,需要 npm i 下載依賴,,但是一直報錯,, 首先用cnpm源下載 $ npm install -g npm npm ERR! code E500 npm ERR! 500 Internal Privoxy Error: [em

python相關軟體安裝流程圖解——Windows安裝Redis以及視覺化工具——Redis-x64-3.2.100——redis-desktop-manager-0.9.3.817

  https://www.2cto.com/database/201708/666191.html https://github.com/MicrosoftArchive/redis/releases          

在win7 64上用npm安裝phantomjs時出現Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE錯誤的解決方法。

解決方案在stackoverflow上找到的,關掉strict-ssl即可,如下: npm config set strict-ssl false 用完之後恢復: npm config set strict-ssl true http://stackoverflow

Python中requests庫模組和lxml模組安裝問題(windows

1.requests模組安裝: 第一次匯入requests模組,會報mportError: No module named requests的錯。這就是沒有成功匯入requests模組。 2.lxml模組安裝問題: 1.進入http://www.lfd

MYSQL5.6免安裝版在windows的使用

一、去MYSQL官網下載MYSQL免安裝版,由於我的系統是64位的,所以就下載了64位的Mysql版本 http://cdn.mysql.com//Downloads/MySQL-5.6/mysql-5.6.34-winx64.zip二、把下載好的mysql-5.6.34-w

使用ruby的gem安裝gem的SSL證書錯誤

最近要學習使用Sass和Compass,因此需要用到ruby環境安裝這兩個專案,在官網下載了ruby的一鍵安裝包後,以為就結束了。結果gem install一個都不能用,全都被牆了。於是想著換過內的映象源,以前淘寶前端專案組有維護一個ruby的映象源,但是好像現

使用npm安裝一些失敗了的看過來(npm國內映象介紹)

 注意:安裝前先把目錄cd到node.exe所在目錄下,這樣執行安裝命令時,會找到目錄下node_modules,並安裝在此目錄下,否則使用mysql時,你會出現 Error: Cannot find module 'mysql'  這個也是網上搜的,親自試過,非常好用! 映象使用方法(三種辦法任意

ubuntu的ftp伺服器的安裝以及在windows的訪問

listen=YES       # 伺服器監聽 anonymous_enable=YES       # 匿名訪問允許 local_enable=YES    # 本地主機訪問允許 write_enable=YES    # 寫允許 anon_upload_enable=YES # 匿名上傳允許,預設是N

windowspip3錯誤解決

輸入pip3 -V,提示Fatal error in launcher: Unable to create process using '"' 使用python3 -m pip install --upgrade pip命令更新即可, 但是嘗試輸入後顯示Requiremen

windows Mysql 錯誤1067 Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

MySQL服務沒啟動,用命令啟動或者在服務視窗啟動時報錯:發生錯誤1067 然後查了許久各自修改my.ini的放都試了,沒用 開啟錯誤日誌一看,最後一行顯示: [ERROR] Fatal error: Can't open and lock privilege tab

go語言 環境安裝與配置---windows

    在從事java開發後,想學習一門新語言,本來以前工作中接觸過python,也用過一段時間,想學Python,後來發現Go語言和我以前自學的C/C++有很多資料型別,列印格式和效能等很多都是相似,或者相同,就開始學Go這門新語言,好的開始,值得去堅持,我會堅持更新自己學

npm安裝webpack步驟及遇到的錯誤

一. 步驟:1. 從node.js官網下載並安裝node,一路“下一步”(傻瓜式安裝)。安裝完成,開啟cmd命令列工具,輸入 node -v,檢視版本號,則說明安裝成功。2.npm包管理器是整合在node中的,輸入 npm -v,顯示npm版本號3.建立package.jso

安裝spring原始碼(windows)

spring原始碼說明中有說編譯spring4.3.x及以上需要JDK1.8 1、配置JDK8 一定要配置JDK8或以上的版本,如果是7轉8 記得配號之後要重啟 2、下載安裝git 3、下載spring原始碼 在某個目錄下 點選右鍵出現git bash