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的更多相关文章

  1. npm install 报错:node-pre-gyp ERR! 问题解决

    npm install报错问题解决 问题: E:\CodeSpace\GitlabTest\desktop>npm install > lifeccp-desktop@1.1.9 post ...

  2. 执行npm install报错:npm ERR! code EINTEGRITY

    命令行执行npm install报错如下: D:\frontend\viewsdev>npm install npm ERR! code EINTEGRITY npm ERR! sha512-8 ...

  3. 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,& ...

  4. 在运行vue项目时,执行npm install报错小记

    在运行vue项目时,执行npm install 报错,导致后续的执行报各种错误,根据报错,尝试了网上的各种办法,最后发现时网络问题下载失败导致,解决办法: 安装cnpm==>npm instal ...

  5. npm install 报错解决办法

    npm install 报错解决办法 原因是因为node_modules可能有意外改动,导致依赖库不完整,删除项目下的node_modules,在你的项目目录下,重新执行npm install,这会重 ...

  6. npm install 报错,提示`gyp ERR! stack Error: EACCES: permission denied` 解决方法

    m install 报错,提示gyp ERR! stack Error: EACCES: permission denied 猜测可能是因为没有权限读写,ls -la看下文件权限设置情况 [root@ ...

  7. npm install 报错ERR! 404 Not Found: event-stream@3.3.6

    在win下开发的node工程,在linux下用dockerfile部署时,遇到npm install时报错 Step / : RUN npm install ---> Running in 2e ...

  8. npm install 报错:ERR! code EINTEGRITY 解决方案

    npm升级后,npm install 报错了,报错信息:ERR! code EINTEGRITY到处百度搜索解决方案,终于找到了!“npm cache verify”这条命令帮助了不少人 npm ca ...

  9. npm install报错:chromedriver@2.27.2 install: node install.js

    报错: 刚开始以为是 node 或 npm 版本问题,前前后后折腾了好久,终于解决了 解决: 如果执行过npm install,先删除 node_modules 文件夹,不然运行的时候可能会报错 执行 ...

  10. 输入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: ...

随机推荐

  1. 组件vue传值

    <div id="app"> <hs :message="name"></hs> 用来接收值 </div> &l ...

  2. RBAC权限控制系统

    1.概述 RBAC(Role-Based Access Control )基于角色的访问控制. RBAC的权限控制可以抽象概括为:判断[Who是否可以对What进行How的访问操作(Operator) ...

  3. [转载]Memory Limits for Windows and Windows Server Releases

    Memory Limits for Windows and Windows Server Releases This topic describes the memory limits for sup ...

  4. zlib 简单封装

    下列代码用于压缩和解压字符串,使用标准库string.实现了对zlib的简单封装. #pragma once #include <boost/noncopyable.hpp> #inclu ...

  5. python matplotlib绘图

    import numpy as np import matplotlib.pyplot as plt from scipy.constants.constants import alpha from ...

  6. sort和uniq的应用实例

    sort 排序 uniq 1.语法:sort [option]... [file]... 2.选项:-k key,关键子,指定以那个列来排序.如果不指定,默认将正行作为关键字排序-n 对数值排序.默认 ...

  7. Lodop设置打印维护返回打印语句代码

    打印设计关闭时,可以返回设计的打印代码,打印维护则返回成功打印的次数.不过打印维护也是返回打印程序代码的,方法就是加个语句,这个语句是: LODOP.SET_PRINT_MODE("PRIN ...

  8. Lodop如何设置预览后导出带背景的图,打印不带背景图

    Lodop中的ADD_PRINT_SETUP_BKIMG,可以加载上背景图,该背景图在预览的时候可以显示也可以不显示,打印可以打印出来也可以不打印出来.一般套打,都是不打印背景图的,比如一些快递的快递 ...

  9. Fiddler4入门——手机抓包

    一.下载工具包 百度搜索”fiddler 下载“ ,安装最新版本 下载的软件安装包为“fiddler_4.6.20171.26113_setup.exe”格式,双击安装.安装成功,在“开始”-“所有程 ...

  10. 部署AWStats分析系统

    介绍 AWStats是使用Prel语言开发的一款开源日志分析系统,它不仅可以用来分析Apache网站服务器的访问日志,也可以用来分析Samba.Vsftpd.IIS等服务的日志信息. AWStats软 ...