npm install express-generator - express

I am trying to install an express node-postgres application, but I am getting the following error:
module.js:549
throw err;
^
Error: Cannot find module 'sorted-object'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/express-
generator/bin/express-cli.js:10:20)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
I am not sure where to go to look for the solution to this error. Should I just delete and reinstall node and npm or is it more simple than that?

Related

Cannot find module 'gulp'

Greetings!
Please i get this error when running ionic serve
Error: Cannot find module 'gulp'
I don't know were the problem is.
I installed the latest version of gulp and yet the error is still there.
After running ionic serve, this is the error it shows
[v1] Error: Cannot find module 'gulp'
[v1] at Function.Module._resolveFilename (module.js:547:15)
[v1] at Function.Module._load (module.js:474:25)
[v1] at Module.require (module.js:596:17)
[v1] at require (internal/module.js:11:18)
[v1] at Object.<anonymous> (/home/gideon/Documents/IONIC/shoppingcart2/ionic-firebase-shopping-cart-master(copy)(copy)/gulpfile.js:1:74)
[v1] at Module._compile (module.js:652:30)
[v1] at Object.Module._extensions..js (module.js:663:10)
[v1] at Module.load (module.js:565:32)
[v1] at tryModuleLoad (module.js:505:12)
[v1] at Function.Module._load (module.js:497:3)
Please any solution to this error? Thanks in advance!

webpack-cli can't find webpack module

i have installed webpack globally and when i run webpack it says
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
We will use "npm" to install the CLI via "npm install -D".
Do you want to install 'webpack-cli' (yes/no):
and I say yes, the webpack-cli seems to be installed correctly but i got an error message that says
{ Error: Cannot find module 'webpack'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (C:\Users\TOSHIBA\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
at Object.<anonymous> (C:\Users\TOSHIBA\node_modules\webpack-cli\bin\convert-argv.js:7:24)
at Module._compile (C:\Users\TOSHIBA\node_modules\v8-compile-cache\v8-compile-cache.js:178:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at yargs.parse (C:\Users\TOSHIBA\node_modules\webpack-cli\bin\cli.js:228:14)
at Object.parse (C:\Users\TOSHIBA\node_modules\yargs\yargs.js:567:18)
at C:\Users\TOSHIBA\node_modules\webpack-cli\bin\cli.js:206:8
at Object.<anonymous> (C:\Users\TOSHIBA\node_modules\webpack-cli\bin\cli.js:505:3)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at runCommand.then (C:\Users\TOSHIBA\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:143:5)
at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' }
what is possibility goes wrong?
Try to npm link webpack-cli to Link Globally installed package of your project

johnny-five library is not getting detected by npm

I tried installing Johnny-five library as specified in the website. After installation while running the code i am getting error as below, please help.
While installing Johnny-five package I got a message such as package-lock.json need to be committed, is it creating any issues?
D:\Js-Arduino>node servo.js
module.js:549
throw err;
^
Error: Cannot find module 'johnny-five'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\Js-Arduino\servo.js:1:74)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
This issue has been resolved.
Moved nodemodules global path to Env variables and Npm started detecting it

Error: Cannot find module 'commander' in stencil on Local server

I have installed stencil on local server. I am getting this error when I run thestencil init command:
Error: Cannot find module 'commander'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\payal\AppData\Roaming\npm\node_modules\#bigcommerce\stencil-cli\bin\stencil:3:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Any help appreciated.
That error is typically indicative of a Node version problem. Try switching to Node 4.4.5 and reinstalling Stencil. I use NVM to manage multiple versions of Node on my machine, works like a charm.

Error: Authentication method waterlock-local-auth could not be found.

I keep getting this error when trying sails lift even after manually running npm install waterlock-local-auth again and again
info: Starting app...
/backend-api/node_modules/waterlock/lib/methods.js:112
throw error;
^
Error: Authentication method waterlock-local-auth could not be found.
Try running npm install waterlock-local-auth
at Object._errorHandler (/backend-api/node_modules/waterlock/lib/methods.js:109:19)
at Object._handleObjects (/backend-api/node_modules/waterlock/lib/methods.js:54:14)
at Object.collect (/backend-api/node_modules/waterlock/lib/methods.js:33:19)
at new Waterlock (/backend-api/node_modules/waterlock/lib/waterlock.js:19:50)
at Object.<anonymous> (/backend-api/node_modules/waterlock/lib/index.js:8:22)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/backend-api/node_modules/waterlock/index.js:6:18)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
It ended up being bcrypt I changed the version number to 1.8.3 instead of 1.8.1
https://github.com/waterlock/waterlock-local-auth/pull/36
For
Error: Authentication method waterlock-local-auth could not be found.
Try running npm install waterlock-local-auth