Recurring problem installing Express.js into a directory #2875

Closed
simonholmes opened this Issue Oct 12, 2012 · 2 comments

Projects

None yet

2 participants

@simonholmes

I've updated Node to v 0.8.11 and also cleared the npm cache as you suggested in response to my issue: #2860 - many thanks for getting back to me so quickly on that one :)

In addition I "npm uninstalled" express globally and reinstalled it. I've even rebooted - old habits die hard!

I get slightly different errors when installing with default options (Jade templates) and with EJS specified. Each time I have tried I have deleted and recreated the destination folder "testpage-express".

Default installation

My commands

sudo express
sudo npm install

Error received

npm ERR! Error: UNKNOWN, symlink '../jade/bin/jade'
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 Linux 3.2.0-24-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /mnt/hgfs/WinLinShare/NodeTest/testpage-express
npm ERR! node -v v0.8.11
npm ERR! npm -v 1.1.23
npm ERR! path ../jade/bin/jade
npm ERR! code UNKNOWN
npm ERR! message UNKNOWN, symlink '../jade/bin/jade'
npm ERR! errno {}
npm http 304 https://registry.npmjs.org/mime/1.2.6
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /mnt/hgfs/WinLinShare/NodeTest/testpage-express/npm-debug.log
npm not ok

Specifying EJS

My commands

sudo express --ejs
sudo npm install

Error received

npm ERR! Error: UNKNOWN, symlink '../express/bin/express'
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 Linux 3.2.0-24-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /mnt/hgfs/WinLinShare/NodeTest/testpage-express
npm ERR! node -v v0.8.11
npm ERR! npm -v 1.1.23
npm ERR! path ../express/bin/express
npm ERR! code UNKNOWN
npm ERR! message UNKNOWN, symlink '../express/bin/express'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /mnt/hgfs/WinLinShare/NodeTest/testpage-express/npm-debug.log
npm not ok

Many thanks again for any help and advice you can give.

@simonholmes

Overnight I had a brainwave. It turns out that it doesn't like being installed in that location.

My Ubuntu install is a VM on a Windows host, and /mnt/hgfs/WinLinShare is a shared folder between the two OS's. You can't (easily) save MongoDB databases here, due to some security and permissions issues, perhaps this is a similar case?

I have tried installing express into a folder "~/nodejs/testpage-express" and it worked first time!

:-)

@luk-
Contributor
luk- commented Mar 15, 2013

This has to do with fs mounted drive issues

@luk- luk- closed this Mar 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment