Meteor npm install produces error: EIO i/o error - node.js

Trying to work with meteor on bash on ubunutu on windows and after installing node and meteor I run on my dir root:
meteor npm install
And I get:
meteor npm install
/home/user/.meteor/packages/meteor-tool/.1.4.0-1.13j49n2++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/cli/dev-bundle.js:113
throw e;
^
Error: EIO: i/o error, stat '/mnt/d/app/.meteor/local/dev_bundle'
at Error (native)
at Object.fs.statSync (fs.js:844:18)
at statOrNull (/home/mateo/.meteor/packages/meteor-tool/.1.4.0-1.13j49n2++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/cli/dev-bundle.js:110:19)
at getDevBundleDir (/home/mateo/.meteor/packages/meteor-tool/.1.4.0-1.13j49n2++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/cli/dev-bundle.js:31:23)
at Object.<anonymous> (/home/mateo/.meteor/packages/meteor-tool/.1.4.0-1.13j49n2++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/cli/dev-bundle.js:172:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
So I go to .meteor/local/dev_bundle and see this:
HAve no idea what to do with this strange error. I'm using "bash on ubunutu on windows" which is Bash on Windows 10.

Related

npm cannot run in Debian: Error: Cannot find module 'node-uuid'

Not really good with this JavaScript world. Trying to install npm and I think it's broken. I'm using Debian and ran:
apt install npm.
Everything went fine but when I run npm it throws up this error
module.js:538
throw err;
^
Error: Cannot find module 'node-uuid'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/lib/nodejs/request/index.js:29:12)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
Nothing works, i can't install the node-uuid either.
I fixed this, I think there's a problem with the package on Debian repo.
I followed the instruction on Node website
https://nodejs.org/en/download/package-manager/
I have npm installed now :)

node.js - "libxmljs" module error

node -v
v4.4.7
npm -v
v2.15.8
node-gyp -v
v3.4.0
I'm trying to run my node app which uses libxmljs module and i'm getting this wierd error:
libxmljs/node_modules/bindings/bindings.js:83
throw e
^
Error: /link/node_modules/libxmljs/build/Release/xmljs.node: undefined symbol: _ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl
at Error (native)
at Object.Module._extensions..node (module.js:434:18)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at bindings (/link/node_modules/libxmljs/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/link/node_modules/libxmljs/lib/bindings.js:1:99)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
I tried to npm update and installing libxmljs again. Doesn't work.
Any tips?

For node v 4.4.2 on Linux, getting "Error: Cannot find module './namegen.js'"

I’m using Node v 4.4.2 on the following version of Linux
[davea#mydevbox mydir]$ uname -a
Linux mydevbox.mydomain.com 1.1.2-45.38.amzn1.x86_64 #1 SMP Wed Mar 16 17:15:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
I installed my version of node from a tarball. I’m getting this error when I run my script
[davea#mydevbox mydir]$ node myscript.js
Validation Complete
module.js:327
throw err;
^
Error: Cannot find module './namegen.js'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/davea/Automate-04-01-2016/js/Optimus.js:6:10)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
I’m confused as to what this means but even more confused as to what I need to do to solve it. Advice is appreciated, - Dave
Edit: I tried installing the module using the method you suggested, but got the same error. See the output from installing and re-running my script
[davea#mydevbox ~]$ npm install namegen
namegen#0.0.0 node_modules/namegen
[davea#mydevbox ~]$
[davea#mydevbox ~]$ cd mydir
[davea#mydevbox mydir]$ node myscript.js
Validation Complete
module.js:327
throw err;
^
Error: Cannot find module './namegen.js'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/davea/mydir/js/Optimus.js:6:10)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Did you check your node_modules for the namegen module? It is created with this directory name. Also looking up https://www.npmjs.com/package/namegen, this module has no documentation and the provided github link for source is broken.
You will have to install this module manually to fix this error:
npm install namegen
Add a -D flag if you want to add this as devDependency.
What the error means is that somewhere in your code your had a line require('namegen') and the "namegen "module is not found as part of your dependencies.
After doing the install, start node your working directory where your package.json is there. Run the code below in REPL mode:
require('namegen').toString();
You should see the code of namegen package that you want to use.
If you refer to the package using require('./namegen') that will not work. You should change it to require('namegen').

Meteor bundle error on startup

I have an issue with meteor bundle. I try to start bundle with foreverjs but get error
root#ip-172-31-0-83:/home/ubuntu/bundle# cat ../logs/forever.log
module.js:340
throw err;
^
Error: Cannot find module 'fibers'
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/ubuntu/bundle/programs/server/boot.js:1:75)
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)
error: Forever detected script exited with code: 8
I tried install fibers via npm
npm install fibers -g
,also I've tried install in local meteor node_modules dir.
But unfortunately error stays.
Version of meteor is 0.9.1.1
The procedure to install Fibers has changed in 0.9.x+
From the docs:
cd bundle
cd programs/server
npm install
Also, the correct setup instructions (for a bundle built by any version of Meteor) can be found in the bundle's README file.

Error: Cannot find module '../deps/console.log'

I'm on OS X 10.8.2, with Node.js 0.10.0 installed via homebrew. When I try to run npm test on nodegit, I get the following error:
cd test && nodeunit *.js
module.js:340
throw err;
^
Error: Cannot find module '../deps/console.log'
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/faceleg/Work/Web/js-apprentice.com/Site/node_modules/nodegit/node_modules/.bin/nodeunit:11:1)
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)
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
I've done npm update && npm -g update since installing node 0.10.0.
How might I go about fixing this?
The stack trace says it all, it's an issue with nodeunit. I'd file an issue on their issues page.
Not knowing much about nodeunit, it looks like it's anticipating being run from a different location. It's trying to require the file /Users/faceleg/Work/Web/js-apprentice.com/Site/node_modules/nodegit/node_modules/deps/console.log.js which is (probably) actually located at /Users/faceleg/Work/Web/js-apprentice.com/Site/node_modules/nodegit/node_modules/nodeunit/deps/console.log.js.

Resources