Sails.js modules are missing

Feeling problems with npm module using sails.js.

The first problem was that the contents of the assets / were not replicated to .tmp / public as the documentation points out. There were other mistakes as well.

Research has shown that modules are missing, one of which grunts. Performance

npm install grunt 

      

makes .tmp / public start work.

But there were other errors when trying to use the frame.

Installation details:

Server Instance: Ubuntu 14.04.1 LTS (recently deployed, no other changes on server other than node and sails.js)

node --version
v0.12.4

      

(built from sources)

npm -v
2.10.1

sails --version
0.11.0

      

sails are installed using: sudo npm install sails -g

Create a new application: sails new testproject

cd testproject
npm list

      

gives a long list of missing npm modules for stderr:

npm ERR! missing: colors@~0.6.2, required by grunt@0.4.2
npm ERR! missing: grunt@~0.4.0, required by grunt-contrib-clean@0.5.0
npm ERR! missing: lodash@~2.4.1, required by grunt-contrib-coffee@0.10.1
npm ERR! missing: grunt@~0.4.0, required by grunt-contrib-coffee@0.10.1
npm ERR! missing: grunt@~0.4.0, required by grunt-contrib-concat@0.3.0
npm ERR! missing: grunt@~0.4.0, required by grunt-contrib-copy@0.5.0

      

and several others.

It seems inexplicable - how could you have missed this (missing npm modules)? I'm new to node - and might be missing something.

As I revisited the start page, I didn't notice anything obvious.

This structure seems to be well thought out - uses some great npm modules.

Has anyone experienced this and found what needs to be fixed?

+3


source to share


1 answer


To fix the missing: colors @ ~ 0.6.2 required by grunt@0.4.2 , just go to node_modules / grunt, do an npm install to install the missing dependencies.



+1


source







All Articles