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.
Related
I'm new to mean stack world, I installed mongoDB and nodejs
node -v => v4.4.3
npm -v => 2.15.1
mongo -version => MongoDB shell version: 3.2.6
then followed MEAN installation guide to install it.
after many faults I can run gult and have a response.
now when ever I try to run any command with mean, I get following error:
module.js:327
throw err;
^
Error: Cannot find module 'request'
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> (/usr/lib/node_modules/mean-cli/lib/controllers/anonymized-data.js:8:12)
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 tried with: sudo npm install request
but still getting same issue !! can any one guide me please? thanks in advance
UPDATE
after running command given by #Alexander Mac, I got following result
it's still same status :( . and without sudo I got lots or errors #Seth :P
Alex is right about 'request' not being part of the package. That said, instead of messing out with the install manually, it might be far easier to install a previous known good version
For e.g., you can try: sudo npm i -g mean-cli#0.12.1
mean-cli package has a bug. The authors forget to include request module in package.json: look here. You can create an issue about that on their site.
To resolve the problem locally go to /usr/lib/node_modules/mean-cli and run: sudo npm i request to install missing request module.
I use nvm to manage node.
I go to /home/ougwen1235/.nvm/versions/node/v4.2.4/lib/node_modules/mean-cli and run npm install request --save.Then, the problem was solved.
This is my first post, so forgive me for formatting issues. I was following this mean.io tutorial: https://www.youtube.com/watch?v=0aMNWYpG5sk. It basically gets you to the point where you can locally access the default web app. I was able to do so successfully.The video then suggests to run>
mean package myTheme
I received this error...
C:\Users\****\myApp>mean package myTheme
module.js:339
throw err;
^
Error: Cannot find module 'config-chain'
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:\Users\****\AppData\Roaming\npm\node_modules\mean-cli\node_modules\npm\lib\config\core.js:2:10)
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)
I'm running npm 2.14.7 and node v4.2.3(video uses 4.2.2) on Win 10. I had previously tried this on node 5.3 and received the same error. I also tried cleaning cache & updating npm, bower, and gulp.
I found C:\Users****\myApp\node_modules\config-chain. Do I need to change something here?
Any help would be greatly appreciated. If I need to provide more information, just ask. Thanks!
I guess something was wrong with mean-cli.
I reran:
npm install -g mean-cli
npm install (inside project folder)
My issue was resolved. Hope this helps someone else.
I just removed and re-installed and everything worked. Go figure. I also had to use sudo because I'm on a mac.
sudo npm install -g ember-cli#2.5
The problem is when you install config-chain it installs in your project directory node_modules but cordova add browser is looking in global modules. This is what I did, went outside the directory and ran npm install -g config-chain That resolved this module and asked for more do the same thing for all modules it complains and you should be good.
I think I have installed node.js before but never used homebrew to do it. Today I tried to do a walkthrough of an application but got stuck at the very beginning. I am fairly new to programming so I am utterly confused as to why I can't get this to work.
I have tried a lot of things but can't seem to find the answer.
These are the commands I run in order to install the MEAN stack:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
(succesful no errors)
brew install node
(succesfull no errors)
I check if node has installed properly by typing:
node -v
v0.12.4
I then check if npm is installed properly by typing:
npm -v
Here is the error message:
module.js:338
throw err;
^
Error: Cannot find module './cache/caching-client.js'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at /usr/local/lib/node_modules/npm/lib/npm.js:22:24
at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/npm.js:466:3)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
I have installed node in a different way other than using Homebrew and maybe that is messing things up. Please let me know your thoughts.
What I have tried to do so far is uninstall node and reinstall it using this process:
https://gist.github.com/DanHerbert/9520689
Maybe you've already fixed, but the answer might serve others.
I tried what is in the post that Mario linked to in his comment, but it didn't work. It just so happens that my npm is installed at /Users/USERNAME/.node/bin/, so I added the following line in my .bash_profile file: export PATH="$HOME/.node/bin:$PATH".
In my case it was caused by me installing node with root and later with brew (without root).
As a result brew was not able to override the old npm files upon upgrading.
Manually removing the old node installation worked for me.
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!
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