色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

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

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

瀏覽:99日期: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
相關文章:
主站蜘蛛池模板: 麻豆日韩 | 久久久久9999| 日本一本黄 | 国产精品一区二区久久精品 | 亚洲在线视频免费观看 | 欧洲美女与男人做爰 | 免费精品久久久视频 | 亚洲综合网在线观看首页 | 91www成人久久 | 欧洲性大片xxxxx久久久 | 狠狠色丁香久久婷婷综 | 久久香蕉精品成人 | 亚洲精品不卡在线 | 久久福利青草精品资源 | 亚洲精品高清久久 | 久久九九国产精品怡红院 | 国产成人综合欧美精品久久 | 午夜免费的国产片在线观看 | 免费国产不卡午夜福在线 | 国产成人精品一区二三区在线观看 | 国产精品国产三级国产专区5o | 国产一区二区三区美女在线观看 | 国产美女在线精品亚洲二区 | 中文字幕视频免费在线观看 | 国产亚洲精品美女一区二区 | 亚洲欧美日韩中文字幕在线 | 久久这里只有精品免费播放 | 日韩 欧美 中文 亚洲 高清 在线 | 国产一区在线免费观看 | 国产美女高清一级a毛片 | 欧美xxx在线 | 国产末成年女噜噜片 | 久久亚洲综合 | 米奇888在线播放欧美 | 国产福利微拍精品一区二区 | 日本在线加勒比 | 在线欧美不卡 | 国产精彩视频在线观看 | 中文字幕亚洲视频 | 午夜影院免费入口 | 国产三级小视频 |