国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

解決安裝gulp時 %1 is not a valid Win32 application 的問題

2019-11-09 13:53:37
字體:
來源:轉載
供稿:網友

錯誤信息如下:

D:/www>gulp distError: %1 is not a valid Win32 application.//?/D:/www/node_modules/node-sass/vendor/win32-x64-48/binding.node at Error (native) at Object.Module._extensions..node (module.js:568:18) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (F:/study/studyGulp/node_modules/node-sass/lib/index.js:24:15) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10)

這是因為node-sass的問題(gulp-sass依賴node-sass),卸載(如有)重裝。

npm rm node-sassnpm install node-sass

但是在安裝 node-sass又遇到坑,如下:

D:/www>npm rm node-sass#先卸載D:/www>npm install node-sassDownloading "https://github.com/sass/node-sass/releases/download/v3.4.1/darwin-x64-46_binding.node": Cannot download "https://github.com/sass/node-sass/releases/download/v3.4.1/darwin-x64-46_binding.node": read ECONNRESETHint: If github.com is not accessible in your location try setting a PRoxy via HTTP_PROXY, e.g. export HTTP_PROXY=http://example.com:1234or configure npm proxy via npm config set proxy http://example.com:8080> node-sass@3.4.1 postinstall /private/tmp/node_modules/node-sass> node scripts/build.js

由于鏡像問題,下載遲遲不成功,好吧,換個辦法。 1、在瀏覽器上進入淘寶 npm下載模塊:https://npm.taobao.org/mirrors/node-sass/v4.5.0/win32-x64-48_binding.node 至 D:/www/win32-x64-48_binding.node 2、添加環境變量:SASS_BINAR_PATH=D:/www/win32-x64-48_binding.node,文件路徑需要和下載的一致,node-sass安裝時,查看需要的.node文件是否存在。 如果存在就不下載,如果不存在,需要下載。 我們已經告訴node-sass文件已經下載下來了,就在D盤,你去哪里找,他一看確實有,直接使用不再下載。 3、再次安裝

npm rm node-sassnpm install node-sass

成功。


上一篇:插件

下一篇:.a和.framework的區別

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 无极县| 建始县| 彭州市| 庐江县| 邹平县| 杂多县| 汤阴县| 象州县| 望都县| 扬州市| 铁岭县| 南丹县| 太湖县| 郓城县| 广西| 锦州市| 江油市| 常熟市| 柯坪县| 名山县| 泰州市| 宣汉县| 淮滨县| 洛浦县| 沽源县| 木兰县| 资兴市| 东城区| 和龙市| 乌兰浩特市| 武隆县| 哈巴河县| 齐河县| 昭苏县| 广汉市| 德惠市| 潜山县| 蓬安县| 儋州市| 白玉县| 荣成市|