Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to install on Windows #4

Closed
samholmes opened this issue Aug 6, 2012 · 5 comments
Closed

Error when trying to install on Windows #4

samholmes opened this issue Aug 6, 2012 · 5 comments

Comments

@samholmes
Copy link

This is the results I get when I try to install this module using npm install:

PS C:\Users\UserName\Programming\ProjectName> npm install email-templates
npm http GET https://registry.npmjs.org/email-templates
npm http 200 https://registry.npmjs.org/email-templates
npm http GET https://registry.npmjs.org/email-templates/-/email-templates-0.0.1.tgz
npm http 200 https://registry.npmjs.org/email-templates/-/email-templates-0.0.1.tgz
npm http GET https://registry.npmjs.org/ejs/0.7.1
npm http GET https://github.com/niftylettuce/juice/tarball/master
npm http GET https://registry.npmjs.org/async/0.1.22
npm http 200 https://registry.npmjs.org/ejs/0.7.1
npm http GET https://registry.npmjs.org/ejs/-/ejs-0.7.1.tgz
npm http 200 https://registry.npmjs.org/async/0.1.22
npm http GET https://registry.npmjs.org/async/-/async-0.1.22.tgz
npm http 200 https://github.com/niftylettuce/juice/tarball/master
npm http 200 https://registry.npmjs.org/ejs/-/ejs-0.7.1.tgz
npm http 200 https://registry.npmjs.org/async/-/async-0.1.22.tgz
npm http GET https://registry.npmjs.org/jsdom/0.2.14
npm http GET https://registry.npmjs.org/mootools-slick-parser/1.3.2
npm http GET https://registry.npmjs.org/cssom/0.2.3
npm http 200 https://registry.npmjs.org/cssom/0.2.3
npm http GET https://registry.npmjs.org/cssom/-/cssom-0.2.3.tgz
npm http 200 https://registry.npmjs.org/jsdom/0.2.14
npm http GET https://registry.npmjs.org/jsdom/-/jsdom-0.2.14.tgz
npm http 200 https://registry.npmjs.org/mootools-slick-parser/1.3.2
npm http GET https://registry.npmjs.org/mootools-slick-parser/-/mootools-slick-parser-1.3.2.tgz
npm http 200 https://registry.npmjs.org/cssom/-/cssom-0.2.3.tgz
npm http 200 https://registry.npmjs.org/jsdom/-/jsdom-0.2.14.tgz
npm http 200 https://registry.npmjs.org/mootools-slick-parser/-/mootools-slick-parser-1.3.2.tgz
npm http GET https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/htmlparser
npm http GET https://registry.npmjs.org/request
npm http 200 https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/contextify/-/contextify-0.1.3.tgz
npm http 200 https://registry.npmjs.org/htmlparser
npm http GET https://registry.npmjs.org/htmlparser/-/htmlparser-1.7.6.tgz
npm http 200 https://registry.npmjs.org/contextify/-/contextify-0.1.3.tgz
npm http 200 https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/request/-/request-2.10.0.tgz
npm http 200 https://registry.npmjs.org/htmlparser/-/htmlparser-1.7.6.tgz
npm http 200 https://registry.npmjs.org/request/-/request-2.10.0.tgz
npm WARN htmlparser@1.6.2 package.json: bugs['web'] should probably be bugs['url']

> contextify@0.1.3 preinstall C:\Users\UserName\Programming\ProjectName\node_modules\email-templates\node_modules\juice\node
_modules\jsdom\node_modules\contextify
> node-waf clean || (exit 0); node-waf configure build

node-waf was unexpected at this time.
npm ERR! error installing contextify@0.1.3
npm ERR! error installing jsdom@0.2.14
npm ERR! error rolling back jsdom@0.2.14 Error: UNKNOWN, unknown error 'C:\Users\UserName\Programming\ProjectName\node_modul
es\email-templates\node_modules\juice\node_modules\jsdom\node_modules\___htmlparser.npm\package\pulls\node-htmlparser\te
sts'
npm ERR! error installing juice@0.0.6

npm ERR! Error: ENOENT, no such file or directory 'C:\Users\UserName\Programming\ProjectName\node_modules\email-templates\no
de_modules\juice\node_modules\jsdom\node_modules\___htmlparser.npm\package\pulls\node-htmlparser\tests\20-rss.js'
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR!
npm ERR! System Windows_NT 6.0.6002
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\
\npm-cli.js" "install" "email-templates"
npm ERR! cwd C:\Users\UserName\Programming\ProjectName
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! path C:\Users\UserName\Programming\ProjectName\node_modules\email-templates\node_modules\juice\node_modules\jsdom\n
ode_modules\___htmlparser.npm\package\pulls\node-htmlparser\tests\20-rss.js
npm ERR! fstream_path C:\Users\UserName\Programming\ProjectName\node_modules\email-templates\node_modules\juice\node_modules
\jsdom\node_modules\___htmlparser.npm\package\pulls\node-htmlparser\tests\20-rss.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory 'C:\Users\UserName\Programming\ProjectName\node_modules\email-templates\n
ode_modules\juice\node_modules\jsdom\node_modules\___htmlparser.npm\package\pulls\node-htmlparser\tests\20-rss.js'
npm ERR! errno {}
npm ERR! fstream_stack Object.oncomplete (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\fstream\lib\writer
.js:204:26)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\UserName\Programming\ProjectName\npm-debug.log
npm not ok

I'm running Windows Vista. Why is it having trouble installing it's dependencies? Does this module work with Windows?

@niftylettuce
Copy link
Collaborator

what version of node are you running btw?

@samholmes
Copy link
Author

I'm running on v0.6.12

I really need to get this module installed tonight before tomorrow. Otherwise, I'm going to just use visionmedia's EJS module to render my emails.

@niftylettuce
Copy link
Collaborator

see my IRC comments and let me know if you were able to resolve.

if you were able to, please post a how-to for others that experience this same issue on Windows.

@samholmes
Copy link
Author

Do you know what exactly is happening and could you explain it? All I know is that it has to do with compiling native modules (C/C++), but I'm not sure exactly how all of this works. I know that it errors on contextify, but there's also that warning on with htmlparser, which might be un-related, I'm not sure.

@niftylettuce
Copy link
Collaborator

Resolved with the introduction of npm install email-templates-windows via https://github.com/niftylettuce/node-email-templates#windows. For future Windows work we will be using the windows branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants