Tag: github

NPM更新错误 – 无法执行GIT

当我尝试创build一个项目时,我得到下面的错误。 这似乎是networking相关的,因为它只发生在公司networking。 任何想法如何解决这个问题? D:\ Projects \ aurelia> au new test3 。 。 。 安装项目依赖关系。 npm ERR! git clone –template = C:\ Users \ user \ AppData \ Roaming \ npm-cache_git -r emotes_templates –mirror git://github.com/gulpjs/gulp.git C:\用户\应用程序数据\漫游\ NPM-cache_git,遥控器\混帐github上-COM-gulpjs-一饮而尽,混帐4-0ecf98f08 :npm ERR! git clone –template = C:\ Users \ user \ AppData \ Roaming \ npm-cache_git-remotes_templates –mirror https://github.com/gulpjs/gulp.git C:\ […]

如何更新github上的npm包

我如何更新github上的任何npm包? 如果这个包的版本依赖性已经过时了。 我不是这个软件包的所有者,但我的平台使用这个npm包,当我更新我的nodejs版本到最后,我会得到错误。 这个命令我用于更新nodejs curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash – sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_6.x | bash – apt-get install -y nodejs rm -rf /niode_modules npm install 这工作很好,但在更新nodejs后,一些npm软件包停止使用新版本

将Node.js应用程序部署到Heroku。 错误NPM_CONFIG_LOGLEVEL =错误

我在heroku上部署我的node.js应用程序,但是当我运行我的应用程序时,它显示我应用程序错误,当我检查我的日志文件,我发现NPM_CONFIG_LOGLEVEL =错误 我的package.json文件是: { "name": "wework-1", "version": "1.0.0", "description": "We Work Meteor, a job board and developer directory for Meteor specific work https://www.weworkmeteor.com", "main": "", "engines": { "node": "= 4.5.0", "npm": "= 3.9.6" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "lint": "eslint .", "pretest": "npm run lint –silent" }, "repository": […]

我怎样才能从github安装npm模块并构build它?

有很多github软件库和节点模块。 其中一些发布为NPM包,我可以通过npm install <module>进行npm install <module> 。 有时github只包含来源,在package.json我可以看到"prepublish": "npm run build"并且NPM获取包; 另外我有可能从github仓库( npm install <project>/<resository> )获取模块,但是默认情况下为node_modules获取源码,然后我必须手动构build它(例如: npm run build )。 有任何select从Github获取源码,然后立即构build它? 谢谢!

获取Github回购的追随者的电子邮件地址

我正在寻求发送一个电子邮件给Github回购的追随者宣布第一个版本。 这个答案相当不错: https : //www.quora.com/Is-there-a-way-to-send-a-message-or-email-to-all-the-followers-of-GitHub-Repo /答案/ PoAn -拜伦-陈-1?SRID = Xt2o Github API有一种方法来获得用户的关注者 – https://developer.github.com/v3/users/followers/#list-followers-of-a-user …但是…有没有办法得到一个Github回购的追随者名单?

从GitHub到Azure的Travis CI部署返回! HEAD – > master(浅度更新不允许)

我正在尝试使用Travis CI部署一个简单的NodeJS网站到Azure。 我已经按照本文中列出的所有步骤操作: https : //www.microsoft.com/developerblog/2015/09/30/using-travis-ci-to-deploy-to-azure/ 这是回购(公共): https : //github.com/mizrael/barfer 。 构build过程很好,打字稿文件正确转换,所有的testing通过。 不幸的是,当谈到最终的部署阶段时,我猜想这是对Azure Web App上设置的Local Git repo的更改,我得到这个错误: ! [远程拒绝] HEAD – > master(不允许浅层更新)错误:无法将某些文件推送到“ https:// [secure]:[secure] @ barfer.scm.azurewebsites.net:443 / barfer.git ' 任何线索?

Github后接收挂钩Nodejs

我正在尝试在Nodejs中创build一个post-receive hook来更新我的服务器,当我的Github repo被更新时。 我之前在php中做过这个。 我现在正在使用Nodejs,我不确定应该如何实现。 我已经看过这篇关于在ec2实例上设置nodejs的博文。 它说: Create a post-recieve hook that will copy over new code after it's been pushed to the repository $ cat > hooks/post-receive #!/bin/sh GIT_WORK_TREE=/home/ubuntu/www export GIT_WORK_TREE git checkout -f $ chmod +x hooks/post-receive 我不确定上面的代码在做什么以及如何实现。 任何想法的最佳方式呢? 我正在运行基本的32位Amazon Linux EC2实例。

从github安装NPM依赖

我无法从github安装我自己的依赖项之一。 我的package.json看起来像这样: { "name": "smartorm", "description": "Intelligent multi-database object relational mapping", "private": true, "main": "smart.js", "dependencies": { "mysql": "~2.5.0", "graphlib": "Queuecumber/GraphLibJS#v1.1", "promise": "~6.0.0", "xtend": "Raynos/xtend#v4.0.0" } } 依赖关系“graphlib”导致错误。 这是我的知识库之一,所以我很确定我没有把它设置正确。 任何帮助,将不胜感激。 运行npm install时出现以下错误 npm http 304 https://registry.npmjs.org/graphlib npm ERR! Error: No compatible version found: graphlib@'Queuecumber/GraphLibJS#v1.1' npm ERR! Valid install targets: npm ERR! ["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.1.0","0.1.1","0.2.0","0.2.1","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.5.7","0.5.8","0.5.9","0.5.10","0.5.11","0.5.12","0.6.0","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","1.0.0-pre1","0.8.0"] npm ERR! at […]

npm ERR! 错误:产生ENOENT

当我尝试推我的代码到Heroku我得到以下错误。 一切工作都很好。 突然之间出了点问题。 —–>检测到Node.js应用程序 Node engine: 0.10.x Npm engine: 1.1.x Start mechanism: Procfile node_modules source: prebuilt node_modules cached: true NPM_CONFIG_PRODUCTION=true NODE_MODULES_CACHE=true —–> Installing binaries Resolving node version 0.10.x via semver.io… Downloading and installing node 0.10.35… Resolving npm version 1.1.x via semver.io… Downloading and installing npm 1.1.71 (replacing version 1.4.28)… —–> Building dependencies Rebuilding any native […]

使用NodeJS和Express的简单电子邮件发件人

我完全不熟悉web开发和web相关的概念和框架(IP,networking,路由器,我每次都畏惧:D)。 但是,由于一些实习工作,我“强迫自己”与这个工作,并感谢大量挖在互联网上,我设法开发一个超级简单的应用程序,可以发送电子邮件,如果我在我的本地主机。 但是,我有一些(很多)问题,但首先,包含我所有代码的文件: Package.json文件 { "name": "email-node", "version": "1.0.0", "dependencies": { "nodemailer": "~0.7.1", "express": "~4.5.1" } } 的index.html <html> <head> <title>Node.JS Email application</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script>// <![CDATA[ $(document).ready(function(){ var from,to,subject,text; $("#send_email").click(function(){ to=$("#to").val(); subject=$("#subject").val(); text=$("#content").val(); $("#message").text("Sending E-mail…Please wait"); $.get("http://localhost:3000/send",{to:to,subject:subject,text:text},function(data) { if(data=="sent") { $("#message").empty().html("Email is been sent at "+to+" . Please check inbox !"); } }); }); […]