I'm trying to install Cloud9 on my web server via tutorial, but I got some trouble.
When I'm trying to run command node bin/cloud9.js i get:
djent#server:~/ide$ node bin/cloud9.js
node.js:216
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function.<anonymous> (module.js:381:11)
at Object.<anonymous> (/home/djent/ide/support/paths.js:7:8)
at Module.<anonymous> (module.js:444:26)
at Object..js (module.js:462:10)
at Module.load (module.js:351:32)
at Function._load (module.js:309:12)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at Object.<anonymous> (/home/djent/ide/bin/cloud9.js:6:1)
at Module.<anonymous> (module.js:444:26)
djent#server:~/ide$
How to fix it? I've tried to reinstall node but it's not working.
Try to start in with bin/cloud9.sh script. It should work.
Cloud9 doesn't run under nodejs 0.6 at the moment. Use nvm to switch to node 0.4.12 to run Cloud9.
You need to install all the required library packages like
libxml2-dev
which are given in the requirements section of the given link
https://github.com/ajaxorg/cloud9?source=c
Related
I am following Cordova's Getting Started guide but I'm already stuck at the 2nd step. When I try to create my project by typing cordova create myApp, it fails with the following error message:
C:\Users\foobar\AppData\Roaming\npm\node_modules\cordova\node_modules\queue-microta
sk\index.js:5
? queueMicrotask.bind(globalThis)
^
ReferenceError: globalThis is not defined
at Object.<anonymous> (C:\Users\foobar\AppData\Roaming\npm\node_modules\cordova
\node_modules\queue-microtask\index.js:5:25)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.<anonymous> (C:\Users\foobar\AppData\Roaming\npm\node_modules\cordova
\node_modules\run-parallel\index.js:4:24)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
I guess it's some sort of node or npm version problem. If possible though, I would rather not install a different version of node or npm, because I'm afraid it will break other projects otherwise. My node and npm versions are as follows:
node --version
v11.15.0
npm --version
6.7.0
Just make sure to reinstall the cordova if your node version changed.
And after that, cordova prepare again.
change Node version with Node Version Manager (NVM) to Node version10.X.X.
queueMicrotask don't work with Node version 11.X.X.
https://github.com/feross/queue-microtask/issues/13
As I installed electron 8.2 successfully on my linux, I encountered this error while I ran the cli command:
electron .
/usr/local/lib/node_modules/electron/index.js:14
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
^
Error: Electron failed to install correctly, please delete
node_modules/electron and try installing again
at getElectronPath (/usr/local/lib/node_modules/electron/index.js:14:11)
at Object. (/usr/local/lib/node_modules/electron/index.js:18:18)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (/usr/local/lib/node_modules/electron/cli.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
Well, it seems the problem is with the usr/local/lib/node_modules/electron folder.
It seemed installed improperly.
So, I copied the node_modules/electron/dist folder in local project and pasted in the global folder mentioned above and :
wooooooooohoooooooooo!!!! solved
I am trying to install coffee-script on ubuntu 12.04. I am getting this error. I tried with npm (ver. 1.1.4) install command too, but it also failed.
$ sudo coffeescript/bin/cake install
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
TypeError: Object # has no method 'existsSync' at cakefileDirectory (/home/gerceka/coffeescript/lib/coffee-script/cake.js:104:12)
at Object.exports.run (/home/gerceka/coffeescript/lib/coffee-script/cake.js:51:19)
at Object. (/home/gerceka/coffeescript/bin/cake:7:38)
at Module._compile (module.js:441:26)
at Object.Module._extensions..js (module.js:459:10)
at Module.load (module.js:348:32)
at Function.Module._load (module.js:308:12)
at Array.Module.runMain [as 0] (module.js:479:10)
at EventEmitter.startup.processNextTick.process._tickCallback (node.js:192:41)
I think I need this for genieacs installation. Thanks.
Thanks for the information. I upgraded my Ubuntu Version to 14.04. After that I had no problem.
I don't know for sure, but I think npm does it for you when you do npm run compile.
Anyway, if you need a working instance, I wrote a guide for GenieACS v1.0-stable. It's going to be outdated in some months, but for now is the latest stable option.
If you have these types of questions, better to post them in the mailing list of GenieACS-Users.
I am running a Homestead virtual machine and when I run Gulp I got this error message.
I read so many topics on the web and I tried these, but not working.
vagrant#homestead:~/Code/crm.activix.local$ gulp module.js:339
throw err;
^
Error: Cannot find module '../traversal'
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> (/home/vagrant/Code/crm.activix.local/node_modules/laravel-elixir/node_modules/babelify/node_modules/babel-core/lib/transformation/plugin-pass.js:19:18)
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)
Homestead and Gulp is a strange thing. I've never gotten it to work properly when running gulp and npm commands inside my Homestead VM.
I use windows, so I have to use gith bash from windows to make gulp/npm stuff work properly. I believe the issue has to do with windows pathing. Take this path from the laravel-elixir install
myproject\node_modules\laravel-elixir\node_modules\gulp-util\node_modules\gulplog\node_modules\glogg\node_modules\sparkles
So dependencies have hteir own dependencies, who have their own dependencies, etc.
When you try to install this, and it has to "mirror" the files on your windows system, it just breaks. At least that's what I think happens.
So to be safe, install node.js on your computer, and run all gulp/npm commands from there. At least that's what I need to do.
I'm trying to install Ionic on Ubuntu 12.04, but I get this error message:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #<Object> has no method 'tmpDir'
at /usr/local/lib/node_modules/npm/node_modules/osenv/osenv.js:49:13
at Object.tmpdir (/usr/local/lib/node_modules/npm/node_modules/osenv/osenv.js:14:15)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/defaults.js:76:18)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:32)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/core.js:4:18)
My node version is v0.6.12.
Could you please update the node to latest version. 0.6.12 is way behind the current node version, also see what version of node js ionic supports.
Current NodeJS Version is 0.12.2
Turns out the problem was related to npm and not nodejs. After checking what Sathish suggested, I realized that I couldn't use npm not even to check its version. I removed both nodejs and npm and I followed this tutorial and everything works fine. Thanks to everybody!