i have updated nodejs, npm , sails. current versions are:
$ node -v: 5.5.0 $ npm -v: 3.3.12 $ sails -v: 0.11.4
this log when i'm creating new app:
$ sails new npmtest installing dependencies... (this take while) npm warn deprecated lodash@0.9.2: lodash@<2.0.0 no longer maintained. upgrade lodash@^3.0.0 npm warn deprecated grunt-lib-contrib@0.7.1: deprecated. see readme: https://github.com/gruntjs/grunt-lib-contrib npm warn deprecated lodash@1.0.2: lodash@<2.0.0 no longer maintained. upgrade lodash@^3.0.0 npm warn skippingaction module inside symlinked module: not running add core-util-is@1.0.2 node_modules/core-util-is npm warn skippingaction module inside symlinked module: not running add minimist@1.1.1 node_modules/geojsonhint/node_modules/minimist npm warn skippingaction module inside symlinked module: not running add isarray@0.0.1 node_modules/isarray npm warn skippingaction module inside symlinked module: not running add jsv@4.0.2 node_modules/jsv npm warn skippingaction module inside symlinked module: not running add underscore@1.6.0 node_modules/nomnom/node_modules/underscore ... info: created new sails app `npmtest`!
perfect, $ cd npmtest
, $ sails lift
this log:
starting app... module.js:341 throw err; ^ error: cannot find module 'validator'
i'm trying install "validator" manually, i'm getting:
$ npm install validator npm warn skippingaction module inside symlinked module: not running add core-util-is@1.0.2 node_modules/core-util-is npm warn skippingaction module inside symlinked module: not running add minimist@1.1.1 node_modules/geojsonhint/node_modules/minimist npm warn skippingaction module inside symlinked module: not running add isarray@0.0.1 node_modules/isarray npm warn skippingaction module inside symlinked module: not running add jsv@4.0.2 node_modules/jsv npm warn skippingaction module inside symlinked module: not running add underscore@1.6.0 node_modules/nomnom/node_modules/underscore ... npmtest@0.0.0 /users/sites/npmtest └── validator@4.5.1 extraneous
but on sails lift, reply same:
starting app... module.js:341 throw err; ^ error: cannot find module 'validator'
what i'm doing wrong? isn't first sails app. have used new app generator docens of times.
this because global installation contains packages not updated.
completely removes sailsjs installation , reinstall again.
Comments
Post a Comment