Heapdump error when running iron-node - javascript

I get this error when launching iron-node
buster-test run failed: Error: -c/--config: Error loading configuration /Users/r01010010/Projects/Mad/paysite/test/buster.js
Cannot find module '../build/Debug/addon'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Users/r01010010/Projects/Mad/paysite/node_modules/heapdump/lib/main.js:18:15)
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:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
No idea on how to solve this.
Env: Node.js v0.10.40 with nvm, node-gyp v3.2.1

With iron-node you do not need this Module. You can read and write such things within dev-tools-window in the Profiles tab. There ist also this document which provides more details. https://github.com/s-a/iron-node/blob/master/docs/PROFILE.md

Related

I have set a discord bot on glitch.com website but it's actually not finding discord.js

The error is :
^
Error: Cannot find module 'discord.js'
Require stack:
- /app/bot.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
at Function.Module._load (internal/modules/cjs/loader.js:526:27)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/app/bot.js:1:17)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
internal/modules/cjs/loader.js:613
throw err;
^
Error: Cannot find module 'discord.js'
Require stack:
- /app/bot.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
at Function.Module._load (internal/modules/cjs/loader.js:526:27)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/app/bot.js:1:17)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
I don't know how to make it find discord.js.
Thank you for answers !
Here are the files contained in the project
What about package? Did you added discord.js
from package.json?
if you don't know I'll try to explain : go to package.json and click to add packages and type discord.js to there. And click the first thing you see. I hope it works!

'weexpack run web' throwing error

I've installed a weexpack project.
When I am trying to run the command weexpack run web It's showing error.
module.js:442
throw err;
^
Error: Cannot find module '../src/run/Web'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/home/dev03/.nvm/versions/node/v6.2.1/lib/node_modules/weexpack/bin/weexpack-run:7:16)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
Can anyone help me with it?
As mentioned by #zahidul-islam-suzon in the comment above, it looks like this is a case sensitivity bug in weexpack: https://github.com/weexteam/weex-pack/issues/148#issuecomment-302861410
It can be fixed by renaming /usr/local/lib/node_modules/weexpack/src/run/web.js (or wherever your weexpack is installed) to Web.js.

npm require fails to detect simple-peer module

I Have installed the below npm module
https://github.com/feross/simple-peer
by,
#sudo npm install simple-peer -g
But When tried including the module, it is unable to find the module. I received the below error
module.js:340
throw err;
^
Error: Cannot find module 'simple-peer'
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/cst/poc/test.js:1:73)
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)
In my sample code I just had
var pee = require('simple-peer');

Meteor + cordova-ios. Error: Cannot find module ‘./util.js’

Meteor 1.3.2.4.
I got this error everytime I try to meteor run / meteor run ios-device a project with cordova-ios.
Log:
/Users/admin/Desktop/My-App/.meteor/local/build/programs/server/boot.js:324
}).run();
^
Error: Cannot find module './util.js'
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. (/Users/admin/.meteor/packages/babel-compiler/.6.6.4.1vgwjcg++os+web.browser+web.cordova/npm/node_modules/meteor-babel/cache.js:4:12)
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)
Do you have any thoughts what can cause that issue?
UPDATE: This happens only on MAC, on WIN everything works.
Re-installing Meteor solved this issue.

node.js and node-postgres syntax error

I just installed node-postgres by running npm install pg .
In my source code, I added var pg = require('pg");
and when I run I now get
module.js:340
throw err;
^
Error: Cannot find module 'pg'
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> (/Users/rrazavipour-lp/Documents/workspace/Astute/app.js:9:10)
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.runMain [as _onTimeout] (module.js:497:10)
What step am I missing?
Where is the node_modules folder in relation to your application?
from http://nodejs.org/api/modules.html:
If the module identifier passed to require() is not a native module, and does not begin with '/', '../', or './', then node starts at the parent directory of the current module, and adds /node_modules, and attempts to load the module from that location.

Categories

Resources