npm install报错node-sass
1.node-sass安装错误
Building: C:\Program Files\nodejs\node.exe D:\gitlab\coreui\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 [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'D:\\gitlab\\coreui\\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 info using node-gyp@3.6.2
gyp info using node@8.11.1 | 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 (D:\gitlab\coreui\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\gitlab\coreui\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\gitlab\coreui\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\gitlab\coreui\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\gitlab\coreui\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\gitlab\coreui\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (D:\gitlab\coreui\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\gitlab\coreui\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\gitlab\coreui\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\gitlab\coreui\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\gitlab\coreui\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\gitlab\coreui\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed stack: 'Error: not found: python2\n at getNotFoundError (D:\\gitlab\\coreui\\node_modules\\which\\which.js:13:12)\n at F (D:\\gitlab\\coreui\\node_modules\\which\\which.js:68:19)\n at E (D:\\gitlab\\coreui\\node_modules\\which\\which.js:80:29)\n at D:\\gitlab\\coreui\\node_modules\\which\\which.js:89:16\n at D:\\gitlab\\coreui\\node_modules\\isexe\\index.js:42:5\n at D:\\gitlab\\coreui\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed at getNotFoundError (D:\gitlab\coreui\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\gitlab\coreui\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\gitlab\coreui\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\gitlab\coreui\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\gitlab\coreui\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\gitlab\coreui\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed python { Error: not found: python
gyp verb `which` failed at getNotFoundError (D:\gitlab\coreui\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\gitlab\coreui\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\gitlab\coreui\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\gitlab\coreui\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\gitlab\coreui\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\gitlab\coreui\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed stack: 'Error: not found: python\n at getNotFoundError (D:\\gitlab\\coreui\\node_modules\\which\\which.js:13:12)\n at F (D:\\gitlab\\coreui\\node_modules\\which\\which.js:68:19)\n at E (D:\\gitlab\\coreui\\node_modules\\which\\which.js:80:29)\n at D:\\gitlab\\coreui\\node_modules\\which\\which.js:89:16\n at D:\\gitlab\\coreui\\node_modules\\isexe\\index.js:42:5\n at D:\\gitlab\\coreui\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
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 (D:\gitlab\coreui\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (D:\gitlab\coreui\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at D:\gitlab\coreui\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\gitlab\\coreui\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\gitlab\coreui\node_modules\node-sass
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\nodemon\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\@babel\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.9.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! D:\Users\xu.han\AppData\Roaming\npm-cache\_logs\2018-08-02T02_10_06_664Z-debug.log
解决办法:
主要是windows平台缺少编译环境,
1、先运行: npm install -g node-gyp
2.缺少文件
npm WARN tar ENOENT: no such file or directory, open 'D:\gitlab\coreui\node_modules\.staging\@angular\compiler-9961a675\src\output\output_ast.js'
npm ERR! code EINTEGRITY
npm ERR! sha512-p5TCYZDAO0m4G344hD+wx/LATebLWZNkkh2asWUFqSsD2OrDNhbAHuSjobrmsUmdzjJjEeZVU9g1h3O6vpstnw== integrity checksum failed when using sha512: wanted sha512-p5TCYZDAO0m4G344hD+wx/LATebLWZNkkh2asWUFqSsD2OrDNhbAHuSjobrmsUmdzjJjEeZVU9g1h3O6vpstnw== but got sha512-CqB7ryzE35jFhgQ8WXB5S1l+BGRWnS7Kk8KRrQXXCRYTkTXnA88WgaEwHkGeQWbsF/HdsgIkDDZcylTdNUonAg==. (3345003 bytes)
npm ERR! A complete log of this run can be found in:
npm ERR! D:\Users\xu.han\AppData\Roaming\npm-cache\_logs\2018-08-02T03_34_06_589Z-debug.log
解决办法:
首先运行npm init,然后再执行install
npm install报错node-sass的更多相关文章
- npm install 报错:node-pre-gyp ERR! 问题解决
npm install报错问题解决 问题: E:\CodeSpace\GitlabTest\desktop>npm install > lifeccp-desktop@1.1.9 post ...
- 执行npm install报错:npm ERR! code EINTEGRITY
命令行执行npm install报错如下: D:\frontend\viewsdev>npm install npm ERR! code EINTEGRITY npm ERR! sha512-8 ...
- npm install 报错 error Unexpected end of JSON input while parsing near '...sShrinkwrap":false,"d' 解决办法
npm install 报错 : error Unexpected end of JSON input while parsing near '...sShrinkwrap":false,& ...
- 在运行vue项目时,执行npm install报错小记
在运行vue项目时,执行npm install 报错,导致后续的执行报各种错误,根据报错,尝试了网上的各种办法,最后发现时网络问题下载失败导致,解决办法: 安装cnpm==>npm instal ...
- npm install 报错解决办法
npm install 报错解决办法 原因是因为node_modules可能有意外改动,导致依赖库不完整,删除项目下的node_modules,在你的项目目录下,重新执行npm install,这会重 ...
- npm install 报错,提示`gyp ERR! stack Error: EACCES: permission denied` 解决方法
m install 报错,提示gyp ERR! stack Error: EACCES: permission denied 猜测可能是因为没有权限读写,ls -la看下文件权限设置情况 [root@ ...
- npm install 报错ERR! 404 Not Found: event-stream@3.3.6
在win下开发的node工程,在linux下用dockerfile部署时,遇到npm install时报错 Step / : RUN npm install ---> Running in 2e ...
- npm install 报错:ERR! code EINTEGRITY 解决方案
npm升级后,npm install 报错了,报错信息:ERR! code EINTEGRITY到处百度搜索解决方案,终于找到了!“npm cache verify”这条命令帮助了不少人 npm ca ...
- npm install报错:chromedriver@2.27.2 install: node install.js
报错: 刚开始以为是 node 或 npm 版本问题,前前后后折腾了好久,终于解决了 解决: 如果执行过npm install,先删除 node_modules 文件夹,不然运行的时候可能会报错 执行 ...
- 输入npm install 报错npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
输入npm install 报以下错误 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: ...
随机推荐
- laravel 数据库获取值的常用方法
---恢复内容开始--- find($id) 需要一个主键$id并返回一个模型对象,若不存在则返回null findOrFail($id) 需要一个主键$id并返回一个模型对象,若不存在则发生错误,抛 ...
- JS文件的写入
1.引入filesaver.js插件: 2.JS: 方法一:var file = new File(["欢迎访问 hangge.com"], "文件导出测试.txt&qu ...
- ubuntu查看本地ip
1.下载net-tools sudo apt-get install net-tools 2.终端输入命令 ifconfig
- logstash 使用kafka范例
写入到kafka input { stdin { } } output { kafka { bootstrap_servers => "10.0.0.200:9092" to ...
- zabbix2.2 - FromDual.MySQL.check" became not supported
升级zabbix后发现zabbix server日志中多个实例报错如下: 27974:20171227:113001.724 item "实例name:FromDual.MySQL.chec ...
- 简单易懂的博弈论讲解(巴什博弈、尼姆博弈、威佐夫博弈、斐波那契博弈、SG定理)
博弈论入门: 巴什博弈: 两个顶尖聪明的人在玩游戏,有一堆$n$个石子,每次每个人能取$[1,m]$个石子,不能拿的人输,请问先手与后手谁必败? 我们分类讨论一下这个问题: 当$n\le m$时,这时 ...
- 自学工业控制网络之路1.1-工业控制系统发展历程CCS DCS FCS
返回 自学工业控制网络之路 自学工业控制网络之路1.1-工业控制系统发展历程CCS DCS FCS 工业控制系统是对诸如图像.语音信号等大数据量.高速率传输的要求,又催生了当前在商业领域风靡的以太网与 ...
- 自学Python3.5-字符串格式化 作用域 递归
一.字符串格式化 二.作用域 三.递归
- android-support-v4.jar 免积分下载
资源名称:android扩展插件 android-support-v4.jar 资源大小:137KB 上传日期:2012-10-08 资源积分:1 下载次数:136 电信下载地址:http://www ...
- [luogu1962]斐波那契数列
来提供两个正确的做法: 斐波那契数列双倍项的做法(附加证明) 矩阵快速幂 一.双倍项做法 在偶然之中,在百度中翻到了有关于斐波那契数列的词条(传送门),那么我们可以发现一个这个规律$ \frac{F_ ...