Sails.js + Grunt "Cannot find module" Error

MikeB

I'm trying to run sails.js in Win7 Starter on a netbook. When I execute 'sails lift' I do get my desired web page at port:1337 but the style files are not being linked to it. The linking is supposed to be done by Grunt.js but it throws the error below. I interpret the error as follow: Grunt is truncating the user path that should read 'c:\Users\Harry Roach...' to 'c:\Users\Harry'. If that interpretation is correct, how can I work around it? Note that sails.js working seems completely dependent on Grunt working i.e. a single point of failure, so a Grunt upgrade is broken sails.js is broken. Is that correct?

[SOLVED] As per Stackoverflow question 20068270 - Install sails.js locally and/or avoid any spaces in directory names. And, yes, Grunt is a single point of failure in sails.js.

$ sails lift
error: Grunt ::
module.js:340
    throw err;
          ^
Error: Cannot find module 'c:\Users\Harry'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

info:
info:
info:    Sails.js           <|
info:    v0.9.4              |\
kim bellinger

As per Stackoverflow question 20068270 - Install sails.js locally and/or avoid any spaces in directory names. And, yes, Grunt is a single point of failure in sails.js.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Node.js Error: Cannot find module express

From Dev

grunt "Error: Cannot find module '../time/convert' (only on windows)

From Dev

Error - Cannot find module 'config'

From Dev

browserify - uncaught error "cannot find module" in bundle.js

From Dev

Error - Cannot find module 'broccoli'

From Dev

Error: Cannot find module 'libxmljs'

From Dev

"Error: Cannot find module 'pkginfo'" - node js app deploying to heroku

From Dev

Error: Cannot find module 'time-grunt'

From Dev

Node.js Error: Cannot find module 'request'

From Dev

Grunt Error Cannot find module 'win-spawn'

From Dev

Error: Cannot find module './args'

From Dev

Error: Cannot find module 'ms'

From Dev

Error: Error: Cannot find module ' in angular js?

From Dev

Error: Cannot find module './pulp'

From Dev

Error: Cannot find module "expose?Zone!zone.js"

From Dev

NPM - Error: Cannot find module '../'

From Dev

How to fix Node.js error: Cannot find module 'immer'

From Dev

Node.js - Error: Cannot find module 'config/chgpass'

From Dev

module.js:327 Error: Cannot find module 'express'

From Dev

Error: Cannot find module './'

From Dev

Error: Cannot find module 'mongodb'

From Dev

Error - Cannot find module 'broccoli'

From Dev

grunt error: cannot find module 'globule'

From Dev

Karma Webpack - Error: Cannot find module "./test/utilities.js"

From Dev

Error: Cannot find module "expose?Zone!zone.js"

From Dev

Error: Cannot find module './'

From Dev

Error: Cannot find module 'html' with Node.JS and Express

From Dev

Node.js error: Cannot find module 'firebase/storage'

From Dev

Node.js Express Error: Cannot find module