osx用npm install 慢jsdom报错求助

&&& 这是有关于我最近学习node.js中出现的错误的记录和纠正过程,因为我只是一名初学者,所以,遇到的错误可能真的是非常简单,如拼写错误等等,这些我当然是不会记录下来的,但是如果是一些我一时看不懂,不知道怎么解决的错误,我就会一一记录下来。
1.npm install formidable的错误
&&&这个错误是我想要通过npm来下载并安装formidable时遇到的,一开始,我是能够进入改包下载的网站,但是却无法下载下来,错误是一大箩筐,但是最主要的还是开头的所谓的&SSL error"。我是在linux平台上开发的,它会显示一些相关的帮助网站,我们可以点进去看看是否有我们需要的,但是,全是英文。我硬着头皮看完,但是,没有与我一样的错误,后来,我要去上课,就关了。回来时,又重新使用该命令,结果成功了,没有报错。我百思不得其解,可能是我一开始那时候网站的链接出了问题。为证明我真的已经安装了该包,我们可以使用npm list的命令来显示我们安装的所有包:
/home/wenjiang├── └─┬ & ├── & ├─┬ & │ ├─┬ & │ │ └── & │ ├── & │ └─┬ & │&& ├─┬ & │&& │ ├── & │&& │ └─┬ & │&& │&& └── & │&& └── & ├── & ├── & └──
如果你们遇到与我一样的错误,不妨先放一边,没准和我一样,&神奇的海螺小姐&出现了!
2.&throw arguments[1]; // Unhandled 'error' event&&&&&&&&&&&&&&&&&&&&&& ^Error: listen EADDRINUSE
&&&&&& 我查过了,这个错误EADDRINUSE就是&error.address in use&,意思就是我们监听的端口已经被使用了,所以我们只要换一个监听的端口就行。
阅读(...) 评论()> nodejs jsdom装配
nodejs jsdom装配
rk2004 & &
发布时间: & &
浏览:28 & &
回复:0 & &
悬赏:0.0希赛币
nodejs jsdom安装
备忘:系统环境win71.下载 nodejs 32bit的,得到一个node.exe文件2. 设置环境变量;3.下载 npm文件,得到一个zip文件,解压到nodejs的目录下,这个时候,nodejs目录下有:文件node.exe 、文件夹 node_modules、文件npm.cmd 共三个文件(夹)4.安装 python2.7,设置环境变量;5. 安装 visual c++ 2010;6. 执行 npm install jsdom 7.搞定!安装的问题:之前 执行第6步的时候,总是提示:“C:\Users\shawn\.node-gyp\0.10.13\Release\node.lib : fatal error LNK1106: 文件无效或磁盘已满: 无法查找到 0x164FE [D:\node\node_modules\jsdom\node_modules\contextify\build\contextify.vcxproj]gyp ERR! build error”回头把目录 C:\Users\shawn\.node-gyp 删掉,重新执行第6步。完成!
本问题标题:
本问题地址:
温馨提示:本问题已经关闭,不能解答。
暂无合适的专家
&&&&&&&&&&&&&&&
希赛网 版权所有 & &&Meteor 完整的npm集成 - 博客频道 - CSDN.NET
Keep Moving
分类:meteormeteorite
这篇文章解决我一个很大的麻烦。因此翻译过来,希望能帮助大家。可能不会按照原文一动不动的翻译,我会加入我的理解来写。因为我的英文水平不是很好。
原文地址:
相关github:/arunoda/meteor-npm
先说一下这篇文章的大概内容,主要是解决了meteor中调用第三方(非Node的API)Module 的问题。因为通过
sudo npm install -g jsdom
(这里以第三方的包 jsdom为例)安装的jsdom,无法直接在Meteor通过Npm.require('jsdom')调用,这样会报错。meteor-npm比较完整的解决了meteor对第三方npm的调用。
大概译文如下:
Meteor- Npm的支持从Meteor 0.6版本开始。 它仅完成了Npm 包的访问。如果你需要在你的应用中用到类似&,&,&,&&
的npm module ,那么不好意思,暂时不支持。
当然你可以自己把这些 Npm module 封装成 包的格式,不过 貌似比较困难。
解决方案来了
我可以欺骗一下Meteor ,并且现在可以完全在Meteor中访问Npm模块了。下面教你如果来做到这点,非常简单。
给你的应用增加NPM支持
第一种方式 是通过Meteorite 的包管理器来完成。
mrt add npm
如果你不想使用meteorite 那么可以使用Node的Npm包管理器来完成。
npm install -g meteor-npm //全局安装
meteor-npm #然后在你的应用的根目录下运行这个命令
它会自动在应用根目录的packages 文件下创建一个npm的包
这样你就可以使用npm的包管理器了。
创建Packages.json
在你的应用更目录下新建一个packages.json文件
在这个文件里面你可以定义你想要使用的npm 模块了。
&jsdom&:&0.8.9&,
&d3&:&xxxx&,
写好这个后,运行meteor 。它会自动安装你需要的这些包。(注:这里不能确定是否会自动安装,因为我是先安装过了这些包的。如果没有自动安装,那么就需要自己通过npm install -g 来安装一下这些写进去的包了。)
在Meteor里面使用它很简单:
//注意不是Npm.require()了 ,但是调用Node API的模块还是使用Npm.require(&fs&)之类的
var jsdom = Meteor.require(&jsdom&);
排名:第17698名
(3)(4)(22)(7)(6)(8)(6)(11)(1)(1)(1)(21)(1)(0)(2)(2)(1)(1)(1)(1)(1)(1)npm WARN package.json: No repository field
npm WARN package.json: No repository field
I installed expressjs with the following command:
sudo npm install -g express
I have the following warning:
npm WARN package.json range-parser@0.0.4 No repository field.
npm WARN package.json fresh@0.1.0 No repository field.
npm WARN package.json methods@0.0.1 No repository field.
npm WARN package.json methods@0.0.1 No readme data.
npm WARN package.json cookie-signature@1.0.1 No repository field.
npm WARN package.json send@0.1.0 No repository field.
npm WARN package.json pause@0.0.1 No repository field.
npm WARN package.json bytes@0.2.0 No repository field.
npm WARN package.json github-url-from-git@1.1.1 No repository field.
npm WARN package.json assert-plus@0.1.2 No repository field.
npm WARN package.json ctype@0.5.2 No repository field.
Im new to nodejs and expressjs. Why I have the above warnings? Should I be worried?
It's just a new check as of NPM v1.2.20, they report this as a warning.
However, don't worry, there are sooooooo many packages which still don't have the repository field in their package.json. The field is used for informational purposes.
In the case you're a package author, put the repository in your package.json, like this:
"repository": {
"type": "git",
"url": "git:///username/repository.git"
Read more about the
field, and see the
for further details.
If you are getting this from your own package.json, just add the repository field to it. (use the link to your actual repository):
"repository" : {
"type" : "git",
"url" : "/npm/npm.git"
you can also mark the application as private if you don’t plan to put it in an actual repository.
"name": "my-application",
"version": "0.0.1",
"private": true
As dan_nl stated, you can add a private fake repository in package.json. You don't even need name and version for it:
"repository": {
"private": true
Better still: Set the private flag directly. This way npm doesn't ask for a README file either:
"name": ...,
"description": ...,
"version": ...,
"private": true
Solution applies to windows
platform Assuming you have installed every prerequisite.
Open folder.\n right click in folder select 'Create repository' . open cmd prompt in admin in this folder. type 'bower install'. It will download bower_componenet and it should now work.
Have you run git init? That command runs you through everything...
Similar Questions
I am trying to download phonegap via: npm install -g phonegap yet I keep getting an error and I don't know why. I made sure I had Node.JS downloaded.
npm ERR! notarget No compatible version found: co
unfortunately http://registry.npmjs.org/npm is down resulting in $ npm install mime npm ERR! Error: ucs {bad_utf8_character_code}: mime npm ERR! at IncomingMessage.&anonymous& (/usr/local/lib/no
Recently upgraded to OSX Mavericks and had all my npm global module symlinks wiped out! Reinstalling npm got npm to work again.
Is there a way to have npm recursively go through /usr/local/lib/node_m
npm install angular
I get the following error & contextify@0.1.9 install c:\mytest\node_modules\angular\node_modules\jsdom\node_modules\contextify & node-gyp rebuild c:\mytest\node_mod
I'm trying to use node.js, npm with grunt. I downloaded node.js with npm, ran npm install from project directory. It ran fine. Then I ran install npm -g grunt-cli, which ended with 'Ok'. I'm running a
As part of a build script used by an npm package I am tinkering with (-g or required), I need to copy the contents of a directory in a remote github repository into the built directory. eg. an ACE edi
We've all experienced that painful moment when a new feature works fine locally but breaks when deployed because we forgot to add a new file. Is there a way to make git warn or automatically add new f
I'm trying to install npm via the terminal but the instructions I'm finding everywhere aren't working. Here's what I see: 192:~ Home$ curl http://npmjs.org/install.sh | sh % Total % Received % Xferd A
I am trying to use NPM on cygwin, but keep getting following errors: ERR! tar -mvxpf - --no-same-owner -C /tmp/npm-5/5-0.844835/contents/___package.npm ta
I'm experimenting with the NPM forms module. it can be viewed here I can't figure out how to bind values to the fields generated. i.e. how to preset the field content with existing values that I load
I am installing Ghost and while installing it I followed the following steps at: http://docs.ghost.org/installation/linux/ But on running npm start I get the following errors: & node index Bus erro
Is it possible to append to a task to npm install. I have a node project in which I'm using Grunt as task runner. To fully install the project, one of course needs to get the dependencies by running
What is the current method of using NPM packages in Meteor? As of March 22, 2013, there is no official documentation on this. There are several questions about this, notably this one, however the solu
I am trying to deploy a node.js server running on EC2 via Elasticbeanstalk. The problem I am having is during the rebuild of the canvas npm module. The command 'canvas@1.1.6 install: node-gyp rebuild'
I installed Node.js.
sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs (15.4MB)
I can find the Node.js npm
I have developed a node.js npm module, developing under Windows. Today I wrote some Mocha tests. After many struggles, it seemed that for npm test to work, package.json had to look like this: (there m
What is the fundamental difference between bower and npm? Just want something plain and simple. I've seen some of my colleagues use bower and npm interchangeably in their projects. Some insight would
How to install npm package from nodejs script? Question is not about simple installation npm packages via terminal, it is about installation via nodejs script: Not about this: npm install express, but
I need to warn people when they don't fill out a form, for example there are 2 text boxes, 1. the Title, 2. Description and when users forget to put a title they will see a warning. I've tried somethi
Locally, when I do: npm install bcrypt
ImportError no module named site
But when I deploy to heroku, it installs just fine. What might be my issue? I tried a few configurations, I have pytho
Not a huge issue, but I've noticed that npm install output on Jenkins comes out a bit weird. Originally it was an issue with having colors set:
** [out :: 96.126.118.103] [37m ** [out :: 96.126.118.1
npm update seems to just update the packages in dependencies, but what about devDependencies. Right now you can install devDependencies by running npm install ., but this doesn't work for npm update .
I have a really simple Node JS app and I'd like to include the Express JS framework. I've installed Express with NPM (and NPM with Homebrew) without any errors using: brew install npm npm install expr
I'm on Heroku and I would like to get NPM installed for a Django application. Is it possible to get npm installed using pip with the requirements.txt file?
If I switch :warn-on-reflection on in Leiningen (Ver. 2), I get warnings not only for the current project, but for dependencies too. (And, e.g. even if I call lein help, it will e.g. warn about refl
I am not able to install grunt module. C:\Users\maah4&npm install -g grunt-cli npm http GET https://registry.npmjs.org/grunt-cli npm http GET https://registry.npmjs.org/grunt-cli npm http GET https
There are a number of examples for warnOn in the grunt docs: exports.warnOn = 'grunt.js'; // Warn on a grunt.js file. exports.warnOn = '*.js'; // Warn on any .js file. exports.warnOn = '*'; // Warn
I am trying to install Jade globally using npm so that I can use the Jade watcher in WebStorm. npm install jade --global
However, I can only find jade.cmd in: ...\AppData\Roaming\npm
and ...\AppData
I can't find at all where npm has its global settings stored. npm config get userconfig C:\Users\Jack\.npmrc
npm config get globalconfig C:\Users\Jack\AppData\Roaming\npm\etc\npmrc
There's no files
When I try upload file in struts2 I get in my view a validation error: Invalid field value for field upload. And in JBoss console I get:
10:37:56,140 WARN [OgnlValueStack] Error setting expression
I must be understanding the warnings documentation wrong. The way I read it, this code: use warnings FATAL =& 'all'; warnings::warn('numeric', 'blarg'); print finished\n;
I am using Ubuntu 14.04LTS I am having nodejs(default package) at path /usr/bin/nodejs I am having npm at path /usr/local/bin/npm When I run npm -v It says bash: /usr/local/bin/npm: /usr/local/bin/nod
I have a DataGridTemplateColumn with DataTemplate as a PasswordBox. I want to warn user if CapsLock is toggled. private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e) { if (Keyboar
I keep having errors when trying to install coffeescript. node version v0.6.1 npm version 1.0.106 npm ERR! Could not create /usr/local/lib/node_modules/___coffee-script.npm npm ERR! error installing c
I have an git repo and I'm trying to set it as a dependency in my project. Using NPM, my package.json looks like this:
devDependencies: { grunt: ~0.4.0, grunt-contrib-connect: ~0.2.0, grun
I was following a tutorial over at nettutsplus, and after running npm update -g npm, my npm no longer exists when i type which npm. here are the errors. what went wrong and how can i fix it? localhost
I just came across milewise/node-soap and when I run npm install soap, it fails with the following errors: sudo npm install soap npm http GET https://registry.npmjs.org/soap npm http 304 https://regis
I have a question about best practices in managing npm nested dependencies. Let me explain my situation, and please tell me what I'm doing wrong, or what's the best way to approach this. I'm running a
I have a problem installing a number of modules with npm and node-gyp. In both cases the problem seems to rely on node-gyp build command. This is the error i always get: gyp ERR! configure error gyp E
i am attempting to install forever using npm via shell command line: npm install forever
this is the response i am getting: npm ERR! Failed to parse json npm ERR! Unexpected end of input npm ERR! Fil
Trying to install Karma with node v0.10.13 and npm 1.3.2. Tried with and without sudo. Here's the log: npm http GET https://registry.npmjs.org/karma npm http GET https://registry.npmjs.org/karma npm h
After meteor installs npm packages: npm: updating npm dependencies -- winston...
Npm.require results in module not found error, by inspecting the code and debugging via node-inspector, I discovered t
I'm having a problem with running npm install from a chef recipe. When I run it from the command line, it finishes fine in under a minute with just a few warnings related to package.json no repository
People keep giving me examples with carp instead of warn. Why? What makes carp better than warn?
Here is the output on the console: floydpink@MBP mean-app (master) $ npm install npm ERR! Darwin 13.4.0 npm ERR! argv node /usr/local/bin/npm install npm ERR! node v0.10.32 npm ERR! npm v2.0.0 n
I am developing a NPM package, which needs to require a module from the application root. Think of it as the package requiring a properties module, which is placed in the application root by the user.
Is there any way to set an NPM dependency to be installed globally in the package.json file? Whenever I run npm update all the dependencies are installed locally. Thanks.
Npm sounds like a great platform to use within an organization, curious if a private repo is possible, like with Nexus/Maven. Nothing comes up on Google :(
I am very new to Node.js and trying to install Flatiron using npm but it gives me an error.
sudo npm install flatiron -g
And I get - npm http GET https://registry.npmjs.org/flatiron npm http 304 htt
and I would like to perform an asynchronous programming in javascript. I found the npm async module: https://www.npmjs.org/package/node-async
doesn't accept npm}

我要回帖

更多关于 npm install dev 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信