Tag: 安装

Nodejs – npm安装永久冻结

我有npm奇怪的问题:安装过程永久冻结在加载阶段。 在安装nodejs之后,我尝试安装angular-cli,但是它停留在加载阶段: c:\>npm install -g @angular/cli npm info it worked if it ends with ok npm info using npm@3.10.10 npm info using node@v6.11.3 npm info ok npm info it worked if it ends with ok npm info using npm@3.10.10 npm info using node@v6.11.3 npm info attempt registry request try #1 at 1:35:34 PM npm http […]

npm windows安装代理问题

我使用下面的命令来设置window7上的代理 npm config set proxy http://<username>:<password>@<proxy-server-url>:<port> npm config set https-proxy http://<username>:<password>@<proxy-server-url>:<port> 但我无法正确设置代理,当我试图运行命令 npm config get proxy 我得到错误的代理url如下 http://<username>/:<password>@<proxy-server-url>:<port> 和 似乎在“用户名:密码”之间冒号之前的冒号被错误地添加为“用户名/密码” 。 如何在Windows上正确configurationnpm代理?

Webmatrix 2,缺lessnode.js模板

我已经安装了Webmatrix 2,但只安装了两个模板(Asp.net)。 如何安装node.js模板?

npm安装soap错误

我刚刚遇到了milewise / node-soap,当我运行npm install soap时,它失败,出现以下错误: sudo npm install soap npm http GET https://registry.npmjs.org/soap npm http 304 https://registry.npmjs.org/soap npm http GET https://registry.npmjs.org/node-expat npm http GET https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/node-expat npm http 304 https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/json-stringify-safe npm http GET https://registry.npmjs.org/forever-agent npm http GET https://registry.npmjs.org/tunnel-agent npm http GET https://registry.npmjs.org/http-signature npm http […]

有没有替代npmzip?

正如@NS Gopikrishnan在这个问题中提到的那样,有一个npmzip工具,我们可以使用这个工具创buildnpm安装包,其中包含该包的所有依赖关系。 不幸的是,npmzip 不再可用 。 我会对创build包含所有依赖关系的脱机安装程序包非常感兴趣。 有谁知道的替代npmzip这样做对我?

安装socket.io时出错

我试图在成功安装node和nmp之后在Windows(8)中安装socket.io包 但是以同样的方式npm install socket.io ( npm install socket.io )我得到以下错误。 http://pastebin.com/EykjZ85X Generating code Finished generating code validation.vcxproj -> c:\~\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\Release\validation.node socket.io@0.9.16 node_modules\socket.io ├── base64id@0.1.0 ├── policyfile@0.0.4 ├── redis@0.7.3 └── socket.io-client@0.9.16 (xmlhttprequest@1.4.2, uglify-js@1.2.5, active-x-obfuscator@0.0.1, ws@0.4.31) 我不知道这是一个错误,但运行基本testing应用程序http://socket.io/#how-to-use不起作用。 它说它找不到套件socket.io 任何想法出了什么问题?

我如何获得HTML快照的工作?

我只是试图运行HTML快照 。 这应该很简单吧? 这是我开始的: npm install html-snapshots 这就是我需要的,对吧? 这是我的snapshots.js文件: var htmlSnapshots = require('html-snapshots'); htmlSnapshots.run({ source: "sitemap.xml", hostname: "localhost", outputDir: "snapshots", outputDirClean: true, selector: "#results-widget" }); 并运行它: node snapshots.js 但是, module.js:340 throw err; ^ Error: Cannot find module '.\robots' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.module.exports.create (C:\webdev\node_modules\html-snapshots\lib\input-generators\index.js:38:16) at Object.module.exports.run […]

根本无法安装快递发生器(只在笔记本电脑上,桌面上没有问题)

我正在尝试启动并运行node.js express,但在安装阶段遇到问题。 我已经安装好了,npm工作正常。 机器:Windows 7上的MacBook Air 2011 我第一次试图通过npm install -g express来安装express,但是在错误发生后遇到错误,我猜不是那么简单。 我在快速网站上跟随了一些build议,在我想要安装的目录中创build一个package.json文件,所以我这样做了: 的package.json: { "name": "tutorial", "description": "tutorial test app", "version": "0.0.1", "private": true, "dependencies": { "express": "4.x" } } 然后我打了npm install ,最后把安装目录安装到了目录(npm命令和package.json所在的目录) 现在我按照快速指南中的说明尝试npm install -g express-generator ,但是我遇到了与之前一样的错误: c:\code\node\tutorial>npm install -g express-generator C:\Users\JosephGoss\AppData\Roaming\npm\express -> C:\Users\JosephGoss\AppData\Roaming\npm\node_modules\express-generato r\bin\express npm ERR! peerinvalid The package flatiron does not satisfy […]

我怎样才能打开web应用程序需要node.js

我必须运行微型爬虫https://github.com/WebMole/Micro-Crawler这是一个爬虫Web应用程序,与node.js运行。 我无法弄清楚如何打开这个应用程序,我下载node.js,当我编写安装npm和安装bower到node.js命令行时,什么也没有发生。 此外,我不知道如何启动后,安装应用程序 请帮帮我

在Ubuntu上的nodejs默认文档

我正在这里进入新的领域。 不是一个Linux的家伙,但我从我的托pipe公司,Ubuntu 12.0.4运行apache2收购了一个专用的服务器。 我有我的域名成功parsing到该服务器(基本的HTML'你好世界'索引页显示正常)。 我已经安装了npm,node和express,他们(据我所知)正常工作。 我已经将这个应用程序添加到根作为“hello.js”: var express = require('express'); var app = express(); app.get('/', function(req, res){ res.write("Hello World"); res.end(); }); app.listen(process.env.PORT, function(){ console.log("Server Started"); }); 在我putty(term?)后运行“node hello.js”,我得到了“Server Started”消息。 但是,当我去我的域名没有结果。 如果我有一个index.html页面,我得到它的内容。 如果我删除它,我得到一个dir列表。 如何使hello.js的网站默认文档? 或者,更一般地说,我如何设置入口点以使用此configuration在lve服务器上运行节点站点? 我可以编写节点,但是部署却比预期的要困难得多。 谁能帮忙?