After installing node.js, npm, python, and karma... can't run it as I keep getting the following message:
karma init
module.js:339
throw err;
^
Error: Cannot find module './modules/core.log'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (C:\Projects\JsVortex\node_modules\core-js\index.js:15:1)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (C:\Projects\JsVortex\node_modules\karma\lib\file-list.js:10:1)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
When I check:
C:\Projects\JsVortex\node_modules\core-js\index.js
Line 15 contains the following line: require('./modules/core.log');
Any ideas how to fix it?
Thanks
Related
When i tried webpack build using webpack-cli by jenkins, following error comes up.
I already tried yarn upgrade, global added webpack-cli..
but nothing happens.
Following code is got by jenkins.
/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack-cli/bin/cli.js:93
throw err;
^
Error: Cannot find module './logging/Logger'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack/lib/Stats.js:12:21)
at Module._compile (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack/lib/Compilation.js:30:15)
at Module._compile (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack/lib/Compiler.js:20:21)
at Module._compile (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack/lib/webpack.js:7:18)
at Module._compile (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Use npm install webpack in terminal and try
When I am trying to run cordova it throw following error:
module.js:339
throw err;
^
Error: Cannot find module 'umask'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/npm/lib/utils/umask.js:1:75)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
I get the following error with "nodejs server.js"
Error: Cannot find module '/home/domain/mydomain.photos/node_modules/sqlite3/lib/binding/node-v11-linux-x64/node_sqlite3.node'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/relive/relive.photos/node_modules/sqlite3/lib/sqlite3.js:4:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
The problem is that in "'/home/domain/mydomain.photos/node_modules/sqlite3/lib/binding/" i do not have a node-v11-linux-x64, but rather node-v46-linux-x64.
I am using Nodejs v0.10.25 and Sqlite v3.8.2.
Any ideas?
executing command: npm --version and getting exception
module.js:338
throw err;
^
Error: Cannot find module 'semver'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\Users\anand\AppData\Roaming\npm\node_modules\npm\l
ib\config\defaults.js:6:14)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
please help me how to fix these, I tried to reinstall node.js but still it is not fixed.
i have a test code and trying to run it
var should = require("should")
describe('Array', function(){
describe('#indexOf()', function(){
it('should return -1 when the value is not present',function(){
[1,2,3].indexOf(5).should.equal(-1);
[1,2,3].indexOf(0).should.equal(-1);
})
})
})
when i run it i am getting error
Error: Cannot find module './lib/should'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/ritesh/projects/passport-topcoder/node_modules/should/index.js:2:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/ritesh/projects/passport-topcoder/test/module.test.js:1:76)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /usr/local/lib/node_modules/mocha/lib/mocha.js:152:27
at Array.forEach (native)
at Mocha.loadFiles (/usr/local/lib/node_modules/mocha/lib/mocha.js:149:14)
at Mocha.run (/usr/local/lib/node_modules/mocha/lib/mocha.js:306:31)
at Object.<anonymous> (/usr/local/lib/node_modules/mocha/bin/_mocha:348:7)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
i included mocha and should in package.json but why i am facing this error .should is showing in my node modules also.please guideline
I faced the same issue, and I think it is because should package has been updated two hours ago (and it may have broken something).
npm install should#1.3.0
did the trick.
EDIT
Version 2.0.1 fixed the issue.
It simply means should from the NPM is not installed. Simply use
sudo npm install should
This means that it should install should from the node package manage.
Hope it makes stuff clearer.
Cheers.