NPM: Cannot find module 'uuid'
npm
Solution
You might have seen the error because of this
const uuidv1 = require('uuid/v1');
try to replace it with this one
const { v1: uuidv1 } = require('uuid');
Problem
I have this message when i try to use npm: ``` > $ npm module.js:472 throw err; ^ Error: Cannot found module 'uuid' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.ks:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/metrics.js:10:12) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) ``` I tried to uninstall reinstall with brew but without success.