-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: require.paths is removed, use node_modules folders or The NODE_PATH environment variable instead #68
Comments
+1, I'm new to node and don't know what to do. So TermKit is broken out of the box, for me. |
This would be the first time that I've used node, but did you run, or add the following in your .bashrc? export NODE_PATH="/usr/local/lib/node" Part of the brew install mentions that this needs to be added. "Please add /usr/local/lib/node_modules to your NODE_PATH environment variable to have node libraries picked up." |
Thanks, but this doesn't solve the problem. It seems that other people are having the same issue too: expressjs/express#902 |
I am running it on Windows, i've edited the files and solved this issue, On Thu, Dec 15, 2011 at 7:10 AM, Nathan B <
Nick Shvelidze https://plus.google.com/109510926758335973804/posts |
New to node as well, but it seems as if TermKit is designed to work out of the box with a 4.xx version of node, as the require.paths function has been removed in all 5.xx releases. This isn't a big deal, as you can just add the correct directories to your node_path and comment out the require.path function in nodekit.js. But after doing this, It also seems that I'm missing the protocol module, which doesn't have a 5.xx compatible version and doesn't seem to be maintained any longer: https://github.com/Gozala/protocol. Ultimately I installed nvm and used a sandboxed version of node 0.4.12. After installing socket.io and protocol I eventually got TermKit up and running. |
why they not update it to work with new version of node? |
As noted in my previous comment, it likely has something to do with the fact that the protocol project is no longer maintained for newer versions of node... Ultimately this is supposed to be a standalone app, though, so hopefully the node.js env/reqs are in the process of being removed anyhow ;) |
Any idea when the issue will be fixed or if there are other workarounds than having a previous version of node installed again? |
Same problem here, I had problems with old versions of node.js and I would rather stay with the latest version only. Would be glad if this is issue is put in some milestone :) Thank you |
I comment the line
Then run this
Instead of
|
We hope the author can update this project... |
Comment out any lines in the source that uses require.paths, then set your NODE_PATH env to all the necessary folders like so, cd TermKit; export NODE_PATH=`pwd`/Shared/:`pwd`/Node/:`pwd`/Node/shell/:`pwd`/Node/view/ In addition, for whatever reason the javascript source is using the RegEx object incorrectly all over the place. I don't know if this worked in the older version of node, but RegExp objects are being evaluated simply by treating them as a function (i.e. /[0-9]/(test)). I had to do a find and replace on misc.js, shell/meta.js, and shell/formatter.js to replace all instances of these with the correct use of the exec() method (i.e. /[0-9]/.exec(test)). I can submit a patch of my changes if anyone wants them. I got this project working on Node v0.6.8. |
Working on a fix for this now |
Fixed here: derDoc@71df2a4 |
But how to apply it ? |
Would be nice the owner of the project pull request #71 :) Hasn't been updated for two months :( |
Ping! Found this after I got the Please pull the fixes the nice hackers coded! :D |
Guys, I'm still getting that error in the newest version. node.js:201 Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.Any ideas how to solve that? |
Same here running node v0.6.11 node.js:201 |
Same here when i use cocos2d-javascript node.js:201 |
Alright everyone I think we've established that this is an error with latest versions of node - no need to abuse the github notifications. |
Sorry Contra no intention to abuse these notifications, fixed by setting up NODE_PATHS correctly - thanks |
npm install protocol File nodekit.js :
The repository have changed But I have a new problem: TermKit/Node/node_modules/protocol/core.js:99 |
Environment path update for Windows user (yes those still exist): export NODE_PATH="C:\Users\IMarek\AppData\Roaming\npm\node_modules" I explained bit more on: http://blog.i-evaluation.com/2012/09/17/error-cannot-find-module-express/ |
after fixing this problem i see in node log only:
and it freezes, any ideas? |
@actionless same here. updates? |
@tekknolagi |
Still doesn't work even after setting export NODE_PATH="/usr/local/lib/node" Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead. [bran@localhost termkit-git]$ sudo updatedb;locate termkit|grep bin |
This is still a problem and this repository seems dead. |
That is not the dead which can eternal lie Ia Ia! Cthulhu Fhtagn! |
Goth kids . . . |
The path error suppression fix does not fix the failure to launch. |
When running nodekit.js, it gets the following error: "Error: require.paths is removed, use node_modules folders or The NODE_PATH environment variable instead"
The text was updated successfully, but these errors were encountered: