npm ERR! node-sass@4.13.0 postinstall: `node scripts/build.js`

2023-11-25 07:28

本文主要是介绍npm ERR! node-sass@4.13.0 postinstall: `node scripts/build.js`,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

npm ERR! node-sass@4.13.0 postinstall: `node scripts/build.js`


npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
npm install
npm run dev

Microsoft Windows [版本 10.0.19045.2965]
(c) Microsoft Corporation。保留所有权利。C:\Users\Administrator>e:E:\>
E:\>CD E:\Workspace_zwf\mallE:\Workspace_zwf\mall>npm install> node-sass@4.13.0 install E:\Workspace_zwf\mall\node_modules\node-sass
> node scripts/install.jsDownloading binary from https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-79_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-79_binding.node":connect ECONNREFUSED 185.199.108.133:443Hint: If github.com is not accessible in your locationtry setting a proxy via HTTP_PROXY, e.g.export HTTP_PROXY=http://example.com:1234or configure npm proxy vianpm config set proxy http://example.com:8080> uglifyjs-webpack-plugin@0.4.6 postinstall E:\Workspace_zwf\mall\node_modules\webpack\node_modules\uglifyjs-webpack-plugin
> node lib/post_install.js> node-sass@4.13.0 postinstall E:\Workspace_zwf\mall\node_modules\node-sass
> node scripts/build.jsBuilding: D:\nodejs\node.exe E:\Workspace_zwf\mall\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'D:\\nodejs\\node.exe',
gyp verb cli   'E:\\Workspace_gihub\\mall-admin-web-master\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@13.9.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:\Workspace_zwf\mall\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Workspace_zwf\mall\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Workspace_zwf\mall\node_modules\which\which.js:80:29)
gyp verb `which` failed     at E:\Workspace_zwf\mall\node_modules\which\which.js:89:16
gyp verb `which` failed     at E:\Workspace_zwf\mall\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at E:\Workspace_zwf\mall\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:170:21)
gyp verb `which` failed  python2 Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:\Workspace_zwf\mall\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (E:\Workspace_zwf\mall\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (E:\Workspace_zwf\mall\node_modules\which\which.js:80:29)
gyp verb `which` failed     at E:\Workspace_zwf\mall\node_modules\which\which.js:89:16
gyp verb `which` failed     at E:\Workspace_zwf\mall\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at E:\Workspace_zwf\mall\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:170:21) {
gyp verb `which` failed   stack: 'Error: not found: python2\n' +
gyp verb `which` failed     '    at getNotFoundError (E:\\Workspace_gihub\\mall-admin-web-master\\node_modules\\which\\which.js:13:12)\n' +
gyp verb `which` failed     '    at F (E:\\Workspace_gihub\\mall-admin-web-master\\node_modules\\which\\which.js:68:19)\n' +
gyp verb `which` failed     '    at E (E:\\Workspace_gihub\\mall-admin-web-master\\node_modules\\which\\which.js:80:29)\n' +
gyp verb `which` failed     '    at E:\\Workspace_gihub\\mall-admin-web-master\\node_modules\\which\\which.js:89:16\n' +
gyp verb `which` failed     '    at E:\\Workspace_gihub\\mall-admin-web-master\\node_modules\\isexe\\index.js:42:5\n' +
gyp verb `which` failed     '    at E:\\Workspace_gihub\\mall-admin-web-master\\node_modules\\isexe\\windows.js:36:5\n' +
gyp verb `which` failed     '    at FSReqCallback.oncomplete (fs.js:170:21)',
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python D:\Python36\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: D:\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:303:12)
gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
gyp ERR! stack     at maybeClose (internal/child_process.js:1026:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "D:\\nodejs\\node.exe" "E:\\Workspace_zwf\\mall\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\Workspace_zwf\mall\node_modules\node-sass
gyp ERR! node -v v13.9.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.13.0 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\Administrator\AppData\Roaming\npm-cache\_logs\2023-11-24T17_07_51_574Z-debug.logE:\Workspace_zwf\mall>npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sassE:\Workspace_zwf\mall>npm install
E:\Workspace_zwf\mall>npm run dev

http://127.0.0.1:8090

这篇关于npm ERR! node-sass@4.13.0 postinstall: `node scripts/build.js`的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/423367

相关文章

js+css二级导航

效果 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Con

js小题:通过字符串执行同名变量怎么做

在JavaScript中,你不能直接使用一个字符串来直接引用一个变量,因为JavaScript是一种静态类型语言(尽管它的类型在运行时可以变化),变量的名字在编译时就被确定了。但是,有几种方法可以实现类似的功能: 使用对象(或Map)来存储变量: 你可以使用一个对象来存储你的变量,然后使用字符串作为键来访问这些变量。 let myVars = { 'var1': 'Hello', 'var

图形编辑器基于Paper.js教程03:认识Paper.js中的所有类

先来认一下Paper的资源对象,小弟有哪些,有个整体的认识。认个脸。 在Paper.js的 官方文档中类大致有如下这些: 基类: ProjectViewItemPointToolSizeSegmentRectangleCurveCurveLocationMatrixColorStyleTweenToolEventGradientGradientStopEvent 二级或三级类 继承Ite

HTML文档插入JS代码的几种方法

在HTML文档里嵌入客户端JavaScript代码有4中方法: 1.内联,放置在< script>和标签对之间。 2.放置在由< script>标签的src属性指定的外部文件中。 3.放置在HTML事件处理程序中,该事件处理程序由onclick或onmouseover这样的HTML属性值指定。 4.放在一个URL里,这个URL使用特殊的“javascript:”协议。 在JS编程中,主张

js 正则表达式出现问题

帮同事写个页面,出现正则表达式不管怎么改都没法匹配的情况。。。。 reg = /^sy[0-9]+$/i; if(rtx.match(reg) == null){ alert("请输入正确的RTX账号!"); return false; } 因为之前一直用的是 reg ="/^sy[0-9]+$/i"; 写PHP写习惯了。。外面多写了两个双引号……T.T 改

bootstrap和JS相关

下表列出了模态框中要用到事件。这些事件可在函数中当钩子使用。 bootstrap 显示隐藏div $('.show-info').click(function () {var show = $(this).data('show');if(show =='all'){$('#creative').show();$('#plan').show();$('#plan').attr('class','

sublime配置node.js

1、下载Nodejs插件,下载地址为: https://github.com/tanepiper/SublimeText-Nodejs(见本人网盘) 下载zip压缩包后解压,文件名改为Nodejs 2、打开Sublime Text3,点击菜单“Perferences” =>“Browse Packages”打开“Packages”文件夹,并将第1部的Nodejs文件夹剪切进来 3

Lodash-js工具库

1. Lodash 简介 Lodash 是一个现代 实用工具库,提供了许多有用的函数,帮助开发者处理常见的编程任务,如数组操作、对象处理、字符串处理等。Lodash 使得代码更简洁、更高效,极大地提高了开发效率。Lodash 的设计灵感来自于 Underscore.js,但提供了更多的功能和更好的性能。 2. 安装 Lodash Lodash 可以通过多种方式安装: 具体安装:参考官网

js实现继承的多种方式

1:原型链方式,即子类通过prototype将所有在父类中通过prototype追加的属性和方法都追加到Child,从而实现了继承   function Person(){   }   Person.prototype.hello = "hello";   Person.prototype.sayHello = function(){     alert(this.h

js预加载/延迟加载

js预加载/延迟加载  博客分类:  · javascript 浏览器面试Chrome腾讯jQuery  在面试中问道了问题,虽然也看过相关资料,但是还是需要增强和梳理下,这些方式出现的需求和实现上的区别。  Pre loader 预加载一般有两种常用方式:xhr和动态插入节点的方式。动态插入节点是最为简单也最为广泛的一种异步加载方式,然后使用动态插入节点方法加载的文件都会在加载后立即执