NODE_PATH error using node.js when trying to configure jsctags for vim

I am trying to set up doctorjs on my windows computer, work with vib tagbar, but I think this might be the node.js question the most. I follow this tutorial . Even after I installed my NODE_PATH, I still get an error message requiring it to be installed. What could be wrong?

Here is the terminal log on my win7 machine:

C:\Windows\system32>set NODE_PATH=C:\Users\JG\Desktop\new\doctorjs\lib\jsctags C:\Windows\system32>node.exe C:\Users\JG\Desktop\new\doctorjs\bin\jsctags.js -h 'node.exe' is not recognized as an internal or external command, operable program or batch file. C:\Windows\system32>cd c:\Users\JG\Desktop\new\doctorjs c:\Users\JG\Desktop\new\doctorjs>node.exe C:\Users\JG\Desktop\new\doctorjs\bin\j sctags.js -h node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: require.paths is removed. Use node_modules folders, or the NODE_PATH envi ronment variable instead. at Function.<anonymous> (module.js:376:11) at Object.<anonymous> (C:\Users\JG\Desktop\new\doctorjs\bin\jsctags.js:41:8) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) at Module.load (module.js:351:31) at Function._load (module.js:310:12) at Array.0 (module.js:470:10) at EventEmitter._tickCallback (node.js:192:40) c:\Users\JG\Desktop\new\doctorjs> 
+2
source share
1 answer

In node.js 0.6.x, require.paths removed. It has been deprecated since 0.2.x, if I recall. Therefore, the problem is not the absence of the NODE_PATH environment variable, but that the running package / application is not compatible with node 0.6.x. The usual solution would be to run this application in node.js 0.4.12. Unfortunately, there is no supported version 0.4.x for Windows. It is best to rewrite the application so that require.paths no longer used.

In addition: do not run the application, for example node.exe C:\Full\Path\Folder , because the working directory will be C:\ . So do something like:

 C:\Full\Path\Folder> C:\node.js\bin\node.exe Folder. 
+3
source

Source: https://habr.com/ru/post/1392232/


All Articles