3
I have a problem when I will try to start an application using nodejs in Windows 10. Every time I use any npm command (except -v) the following error is displayed
Error: Cannot find module 'verror' 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\MyUser\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\http-signature\node_modules\jsprim\lib\jsprim.js:9:18) 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) npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\MyUser\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'verror'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
I’ve already set the Node paths in the environment variables
- C: Program Files nodejs
and npm
- C: Myuser Appdata Roaming npm
Does anyone have any idea?
My reading and understanding powers indicate that a module called wart in its application.
– Oralista de Sistemas
tried a
npm install
in the directory where thepackage.json
?– BrTkCa
Hello @Lucascosta, yes I gave an install npm inside the folder where you have package.json.
– cido18
Hello @Renan as I said at the beginning of the topic this error in all commands, even if you try to install the crystal... Next: npm install verror Error: Cannot find module 'verror'
– cido18
Using which version of Node? Make sure it is compatible with your OS architecture and always try to use a stable version
– BrTkCa
I’m wearing 6.11
– cido18
@cido18 I recommend uninstalling and reinstalling Node. If this doesn’t work, try an earlier version, or put the wart manually in the environment.
– Oralista de Sistemas
@Renan worked for the crystal, but now other modules are being ordered... is there any other way to install all Node components at once? 'Cause downloading item by item is gonna take time...
– cido18
@cido18 uninstall the disgust and install again.
– Oralista de Sistemas
Thanks Lucascosta and @Renan basically just needed to add the modules in C: Myuser Appdata Roaming npm manually and it worked.
– cido18
@cido18 now that I understand the problem you had to fix I reversed my vote (-1 to +1).
– Oralista de Sistemas