热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

chore(build):makenpmscriptwindowscompatible

Ijustcheckoutng2-bootstraptrytobuildng2-bootstarpitselfandcouldnotrunnpmin

I just checkout ng2-bootstrap try to build ng2-bootstarp itself and could not run npm install.

Can u update contributor development guide to start and test?

D:\RNDA\AngulerJS\ishara\ng2-bootstrap>npm install

node-zopfli.4.0 install D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v47-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli.4.0 and node.10.1 (node-v47 ABI) (falling back to source compile with node-gyp)

D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli>if not defined npm_config_node_gyp (node "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" clean ) else (node "" clean )

D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli>if not defined npm_config_node_gyp (node "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64 ) else (node "" configure --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64 )

D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli>if not defined npm_config_node_gyp (node "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" build --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64 ) else (node "" build --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the compon
ent to the system path if it is installed elsewhere. [D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error:

1
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe

failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node" "--module_name=zopfli" "--module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64"
gyp ERR! cwd D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli
gyp ERR! node -v v5.10.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:100:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:185:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:850:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Windows_NT 10.0.10240
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli
node-pre-gyp ERR! node -v v5.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd build --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64' (1)
npm WARN install:node-zopfli.4.0 node-zopfli.4.0 install:

1
node-pre-gyp install --fallback-to-build

npm WARN install:node-zopfli.4.0 Exit status 1

ng2-bootstrap.0.16 prepublish D:\RNDA\AngulerJS\ishara\ng2-bootstrap
npm run flow.clean && npm run flow.compile

ng2-bootstrap.0.16 flow.clean D:\RNDA\AngulerJS\ishara\ng2-bootstrap
del bundles coverage demo-build typings "components/*/.+(js|d.ts|js.map)" dist "ng2-bootstrap.+(js|d.ts|js.map)"

Could Not Find D:\RNDA\AngulerJS\ishara\ng2-bootstrap\bundles
D:\RNDA\AngulerJS\ishara\ng2-bootstrap\demo-build*, Are you sure (Y/N)? y
Could Not Find D:\RNDA\AngulerJS\ishara\ng2-bootstrap\typings
The filename, directory name, or volume label syntax is incorrect.

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "flow.clean"
npm ERR! node v5.10.1
npm ERR! npm v3.8.3
npm ERR! code ELIFECYCLE
npm ERR! ng2-bootstrap.0.16 flow.clean:

1
del bundles coverage demo-build typings "components/**/*.+(js|d.ts|js.map)" dist "ng2-bootstrap.+(js|d.ts|js.map)"

npm ERR! Exit status 123
npm ERR!
npm ERR! Failed at the ng2-bootstrap.0.16 flow.clean script 'del bundles coverage demo-build typings "components//*.+(js|d.ts|js.map)" dist "ng2-bootstrap.+(js|d.ts|js.map)"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-bootstrap package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! del bundles coverage demo-build typings "components/
/*.+(js|d.ts|js.map)" dist "ng2-bootstrap.+(js|d.ts|js.map)"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-bootstrap
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-bootstrap
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\RNDA\AngulerJS\ishara\ng2-bootstrap\npm-debug.log

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents.0.12
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v5.10.1
npm ERR! npm v3.8.3
npm ERR! code ELIFECYCLE
npm ERR! ng2-bootstrap.0.16 prepublish:

1
npm run flow.clean && npm run flow.compile

npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ng2-bootstrap.0.16 prepublish script 'npm run flow.clean && npm run flow.compile'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-bootstrap package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run flow.clean && npm run flow.compile
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-bootstrap
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-bootstrap
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\RNDA\AngulerJS\ishara\ng2-bootstrap\npm-debug.log

该提问来源于开源项目:valor-software/ngx-bootstrap

Cheers for picking up my mistake





   



推荐阅读
  • Webmin远程命令执行漏洞复现及防护方法
    本文介绍了Webmin远程命令执行漏洞CVE-2019-15107的漏洞详情和复现方法,同时提供了防护方法。漏洞存在于Webmin的找回密码页面中,攻击者无需权限即可注入命令并执行任意系统命令。文章还提供了相关参考链接和搭建靶场的步骤。此外,还指出了参考链接中的数据包不准确的问题,并解释了漏洞触发的条件。最后,给出了防护方法以避免受到该漏洞的攻击。 ... [详细]
  • 本文介绍了pack布局管理器在Perl/Tk中的使用方法及注意事项。通过调用pack()方法,可以控制部件在显示窗口中的位置和大小。同时,本文还提到了在使用pack布局管理器时,应注意将部件分组以便在水平和垂直方向上进行堆放。此外,还介绍了使用Frame部件或Toplevel部件来组织部件在窗口内的方法。最后,本文强调了在使用pack布局管理器时,应避免在中间切换到grid布局管理器,以免造成混乱。 ... [详细]
  • VSCode快速查看函数定义和代码追踪方法详解
    本文详细介绍了在VSCode中快速查看函数定义和代码追踪的方法,包括跳转到定义位置的三种方式和返回跳转前的位置的快捷键。同时,还介绍了代码追踪插件的使用以及对符号跳转的不足之处。文章指出,直接跳转到定义和实现的位置对于程序员来说非常重要,但需要语言本身的支持。以TypeScript为例,按下F12即可跳转到函数的定义处。 ... [详细]
  • 【Windows】实现微信双开或多开的方法及步骤详解
    本文介绍了在Windows系统下实现微信双开或多开的方法,通过安装微信电脑版、复制微信程序启动路径、修改文本文件为bat文件等步骤,实现同时登录两个或多个微信的效果。相比于使用虚拟机的方法,本方法更简单易行,适用于任何电脑,并且不会消耗过多系统资源。详细步骤和原理解释请参考本文内容。 ... [详细]
  • 解决VS写C#项目导入MySQL数据源报错“You have a usable connection already”问题的正确方法
    本文介绍了在VS写C#项目导入MySQL数据源时出现报错“You have a usable connection already”的问题,并给出了正确的解决方法。详细描述了问题的出现情况和报错信息,并提供了解决该问题的步骤和注意事项。 ... [详细]
  • REVERT权限切换的操作步骤和注意事项
    本文介绍了在SQL Server中进行REVERT权限切换的操作步骤和注意事项。首先登录到SQL Server,其中包括一个具有很小权限的普通用户和一个系统管理员角色中的成员。然后通过添加Windows登录到SQL Server,并将其添加到AdventureWorks数据库中的用户列表中。最后通过REVERT命令切换权限。在操作过程中需要注意的是,确保登录名和数据库名的正确性,并遵循安全措施,以防止权限泄露和数据损坏。 ... [详细]
  • Netty源代码分析服务器端启动ServerBootstrap初始化
    本文主要分析了Netty源代码中服务器端启动的过程,包括ServerBootstrap的初始化和相关参数的设置。通过分析NioEventLoopGroup、NioServerSocketChannel、ChannelOption.SO_BACKLOG等关键组件和选项的作用,深入理解Netty服务器端的启动过程。同时,还介绍了LoggingHandler的作用和使用方法,帮助读者更好地理解Netty源代码。 ... [详细]
  • 本文记录了作者对x265开源代码的实现与框架进行学习与探索的过程,包括x265的下载地址与参考资料,以及在Win7 32 bit PC、VS2010平台上的安装与配置步骤。 ... [详细]
  • Introduction(简介)Forbeingapowerfulobject-orientedprogramminglanguage,Cisuseda ... [详细]
  • FIN7后门工具伪装成白帽工具进行传播
    fin7,后门,工具,伪装,成,白, ... [详细]
  • 我正在尝试将Firebase添加到涉及添加以下内容的现有应用程序中:classpath'com.googl ... [详细]
  • 与.Net大师Jeffrey Richter面对面交流——TUP对话大师系列活动回顾(多图配详细文字)...
    与.Net大师JeffreyRichter面对面交流——TUP对话大师系列活动回顾(多图配文字)上周末很有幸参加了CSDN举行的TUP活动, ... [详细]
  • 安装Tensorflow-GPU文档第一步:通过Anaconda安装python从这个链接https:www.anaconda.comdownload#window ... [详细]
  • 域名解析系统DNS
    文章目录前言一、域名系统概述二、因特网的域名结构三、域名服务器1.根域名服务器2.顶级域名服务器(TLD,top-leveldomain)3.权威(Authoritative)域名 ... [详细]
  • Go Cobra命令行工具入门教程
    本文介绍了Go语言实现的命令行工具Cobra的基本概念、安装方法和入门实践。Cobra被广泛应用于各种项目中,如Kubernetes、Hugo和Github CLI等。通过使用Cobra,我们可以快速创建命令行工具,适用于写测试脚本和各种服务的Admin CLI。文章还通过一个简单的demo演示了Cobra的使用方法。 ... [详细]
author-avatar
-吴奇润
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有