-
Notifications
You must be signed in to change notification settings - Fork 3k
npm link in centos #4933
Comments
Looks like your module might be getting executed, and that it's your module that's throwing that error, not your shell. Check output of |
@tjwebb before doing anything else,it would output one message in the console if it was executed,but it didn't,so i don't think that's the problem,any other ideas? |
[root@localhost attachment]# strace /usr/local/lib/node_modules/uechecker-server/uechecker.js i use strace to follow the execute context,and i find node using the wrong module name |
I have no idea, but it doesn't look like a problem with the module or npm. Since you installed this globally, I'd try running it with root. Or, don't install it globally. Also try clearing your global and local npm cache directories. |
Is this still a problem for you? It looks to me like the problem is a stray carriage return character (\r) at the end of the first script. This is causing the OS to fail to find the Try running There have been a lot of improvements to npm -- especially around conflicts and race conditions during install -- since 1.4. Can you try updating your npm installation? To update npm, run To update npm on Windows, follow the instructions here: https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows For some Linux distributions (Debian/Ubuntu and RedHat/CentOS), the latest node version provided by the distribution may lag behind the stable version. Here are instructions from NodeSource on getting the latest node. We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!) Thanks! |
I dont know how could this happened,for the first line of
|
The \r isn't coming from your command line; it's coming from the file
|
I've solved this by using the following command,and thx for reminding me of that.
|
i've created my private module under windows,and i tested it use
npm link
,everything worked fine until i moved this module to centos 5.8,npm link
worked fine too,but when i execute this module,it says 'No such file or directory',what is going on.[root@localhost uechecker-server]# npm link
/usr/local/bin/uechecker-server -> /usr/local/lib/node_modules/uechecker-server/uechecker.js
/usr/local/lib/node_modules/uechecker-server -> /home/ued/uechecker-server
[root@localhost uechecker-server]# uechecker-server
: No such file or directory
The text was updated successfully, but these errors were encountered: