Cannot find module 'sass' #290

Closed
yaxinhoo opened this Issue May 31, 2011 · 10 comments

Projects

None yet

3 participants

@yaxinhoo

xxxxx@ubuntu:~/connect$ make test

uncaught: Error: ECONNREFUSED, Connection refused
at Socket._onConnect (net.js:601:18)
at IOWatcher.onWritable as callback

uncaught: Error: Cannot find module 'sass'
at Function._resolveFilename (module.js:322:11)
at Function._load (module.js:267:25)
at require (module.js:351:19)
at Object.compile (/home/xxxx/node_modules/connect/lib/middleware/compiler.js:131:46)
at /home/xxxx/node_modules/connect/lib/middleware/compiler.js:99:24
at [object Object]. (fs.js:107:5)
at [object Object].emit (events.js:61:17)
at afterRead (fs.js:878:12)
at wrapper (fs.js:245:17)

uncaught: AssertionError: test with wildcard. Invalid response header Content-Type.
Expected: application/coffee-script
Got: application/octet-stream
at IncomingMessage. (/home/xxxx/connect/node_modules/expresso/bin/expresso:469:32)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)
at Client.onData as ondata
at Client._onReadable (net.js:683:27)
at IOWatcher.onReadable as callback

@tj
Member
tj commented May 31, 2011

did you install the deps? npm install?

@yaxinhoo
yaxinhoo commented Jun 2, 2011

which deps ? i had done npm install -d

@yaxinhoo
yaxinhoo commented Jun 2, 2011

xxxx@ubuntu:/connect$ sass -v
Haml/Sass 2.2.17
xxxx@ubuntu:
/connect$ sudo install -g
install: option requires an argument -- 'g'
Try `install --help' for more information.
xxxx@ubuntu:~/connect$ sudo npm install

xxxx@ubuntu:/connect$ sudo npm install -g
xxxx@ubuntu:
/connect$ sudo npm install -g sass
sass@0.5.0 /usr/local/lib/node_modules/sass
connect@1.4.2 /usr/local/lib/node_modules/connect
├── mime@1.2.2 ()
└── qs@0.1.0
xxxx@ubuntu:~/connect$ make test

uncaught: Error: ECONNREFUSED, Connection refused
at Socket._onConnect (net.js:601:18)
at IOWatcher.onWritable as callback

uncaught: Error: Cannot find module 'sass'
at Function._resolveFilename (module.js:322:11)
at Function._load (module.js:267:25)
at require (module.js:351:19)
at Object.compile (/home/xxxx/node_modules/connect/lib/middleware/compiler.js:131:46)
at /home/xxxx/node_modules/connect/lib/middleware/compiler.js:99:24
at [object Object]. (fs.js:107:5)
at [object Object].emit (events.js:61:17)
at afterRead (fs.js:878:12)
at wrapper (fs.js:245:17)

uncaught: AssertionError: test with wildcard. Invalid response header Content-Type.
Expected: application/coffee-script
Got: application/octet-stream
at IncomingMessage. (/home/xxxx/connect/node_modules/expresso/bin/expresso:469:32)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)
at Client.onData as ondata
at Client._onReadable (net.js:683:27)
at IOWatcher.onReadable as callback

@yaxinhoo
yaxinhoo commented Jun 2, 2011

i follow the source readme

@tj
Member
tj commented Jun 2, 2011

installing sass globally wont help, $ npm install -d should grab all of them, seems fine for me

@yaxinhoo
yaxinhoo commented Jun 2, 2011

xxxx@ubuntu:~/connect$ npm install -d
npm info it worked if it ends with ok
npm info using npm@1.0.6
npm info using node@v0.4.8
npm info preinstall connect@1.4.2
npm info build /home/xxxx/connect
npm info linkStuff connect@1.4.2
npm info install connect@1.4.2
npm info postinstall connect@1.4.2

npm info ok
xxxx@ubuntu:~/connect$ make test

uncaught: Error: ECONNREFUSED, Connection refused
at Socket._onConnect (net.js:601:18)
at IOWatcher.onWritable as callback

uncaught: Error: Cannot find module 'sass'
at Function._resolveFilename (module.js:322:11)
at Function._load (module.js:267:25)
at require (module.js:351:19)
at Object.compile (/home/xxxx/node_modules/connect/lib/middleware/compiler.js:131:46)
at /home/xxxx/node_modules/connect/lib/middleware/compiler.js:99:24
at [object Object]. (fs.js:107:5)
at [object Object].emit (events.js:61:17)
at afterRead (fs.js:878:12)
at wrapper (fs.js:245:17)

uncaught: AssertionError: test with wildcard. Invalid response header Content-Type.
Expected: application/coffee-script
Got: application/octet-stream
at IncomingMessage. (/home/xxxx/connect/node_modules/expresso/bin/expresso:469:32)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)
at Client.onData as ondata
at Client._onReadable (net.js:683:27)
at IOWatcher.onReadable as callback

@tj
Member
tj commented Jun 2, 2011

weird it kinda looks like npm is not even trying to install the dev deps

@yaxinhoo
yaxinhoo commented Jun 6, 2011

how to install the dev deps ?

@tj
Member
tj commented Jun 6, 2011

you should be able to just clone the repo, and do npm install in the repo, or npm install --dev i think

@tj
Member
tj commented Jun 6, 2011

though I would work in the repo, not the npm-installed one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment