午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

您的位置:首頁技術文章
文章詳情頁

javascript - 用npm安裝Node-Sass老是報錯是怎么回事?

瀏覽:173日期:2023-08-25 11:51:50

問題描述

錯誤代碼: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 (C:Users***AppDataRoamingnpmnode_modulesnode-sassnode_modulesnode-gyplibconfigure.js:483:19)gyp ERR! stack at PythonFinder.<anonymous> (C:Users***AppDataRoamingnpmnode_modulesnode-sassnode_modulesnode-gyplibconfigure.js:508:16)gyp ERR! stack at C:Users***AppDataRoamingnpmnode_modulesnode-sassnode_modulesgraceful-fspolyfills.js:284:29gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)gyp ERR! System Windows_NT 6.1.7601gyp ERR! command 'D:Program Filesnodejsnode.exe' 'C:Users*AppDataRoamingnpmnode_modulesnode-sassnode_modulesnode-gypbinnode-gyp.js' 'rebuild' '--verbose' '--libsass_ext=' '--libsass_cflags=' '--libsass_ldflags=' '--libsass_library='gyp ERR! cwd C:Users***AppDataRoamingnpmnode_modulesnode-sassgyp ERR! node -v v8.0.0gyp ERR! node-gyp -v v3.6.2gyp ERR! not okBuild failed with error code: 1npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! node-sass@4.5.3 postinstall: node scripts/build.jsnpm ERR! Exit status 1npm ERR!npm ERR! Failed at the node-sass@4.5.3 postinstall script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:npm ERR! C:Users***AppDataRoamingnpm-cache_logs2017-07-06T01_07_47_983Z-debug.log

求大佬指點,給大佬遞茶。公司內網,代理已經配置好,不過我的權限可能有的網站和端口會訪問不了,github能上,node.js官網能上,源用的是cnpm。

問題解答

回答1:

在跟package.json同目錄創一個名為.npmrc的文件,然后裝個python,最好是2.X版本

把下面這句東西放進去

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

提示是需要安裝python,可以安裝個python試試,然后配下PYTHON 的環境變量,重新安裝試試看。

回答3:

根目錄創建.npmrc

phantomjs_cdnurl=http://cnpmjs.org/downloadssass_binary_site=https://npm.taobao.org/mirrors/node-sass/registry=https://registry.npm.taobao.org

保存后 重新npm install

回答4:

我昨天也試過安裝nodesass失敗,后面轉用淘寶鏡像裝就成功了$ npm install -g cnpm --registry=https://registry.npm.taobao.org (安裝淘寶鏡像)

$ cnpm install node-sass --save (使用淘寶鏡像安裝node-sass)

標簽: JavaScript
相關文章:
主站蜘蛛池模板: 国产不卡在线观看 | av一起草 | xxxx在线视频| 特黄网站| 自拍偷拍第5页 | 自拍偷自拍亚洲精品播放 | 精品久久久久久久久久久国产字幕 | 91在线视频免费 | 黄色片网站在线播放 | 午夜三级福利 | 视频1区| 亚洲色图3p | 国产精品九九视频 | 欧美另类专区 | 日本黄在线观看 | 日本色综合 | 少妇伊人| 波多野结衣一级 | 中文字幕第四页 | 欧美区在线| 亚洲成人另类 | 91福利影院 | 欧美日韩国内 | 精品久久久久久久久久久久 | 亚洲精品在线看 | 黄色一级视频在线观看 | 久久99国产精品 | 国产精品自拍一区 | 日本一区二区精品视频 | 超碰精品在线观看 | 国产三级在线看 | 欧美日本日韩 | 一级美女视频 | 亚洲黄色片在线观看 | 日韩久久视频 | 91九色在线播放 | 国产一级免费观看 | 在线不卡日本 | 国产调教 | 国产综合在线播放 | 亚洲天堂av在线免费观看 |