简体   繁体   中英

Sublime text 3 win 7 TernJS and tern_for_sublime install issue

I want Sublime to jump to variable definition (for method it works with F12), and to find all variable/method references/calls. Also, to provide nice autocomplete.

I try to install TernJS and tern_for_sublime and none of them work.

According to link, TernJS is Deprecated.

With tern_for_sublime I get error that I need to install npm package manually. First image below appears when I started sublime, second immediately after sublime is started and third one when I tried to use any command from tern_for_sublime package.

I do not know what does it mean. I check and I already have Node.js and npm installed. I also tried to install tern_for_sublime from package control and manually from git repository.

According to documentation:

"The plugin will load its settings from Tern.sublime-settings (found in
Preferences > Package Settings > Tern), and recognized the following 
settings:

tern_argument_hints (boolean, defaults to false)"

There is no this and any other setting in my sublime ternjs. I checked I have "AppData\\Roaming\\Sublime Text 3\\Packages\\tern_for_sublime" package which I got from github.

Does anyone have the same problem with this, or have some other plugin to recommend me ?

升华开始时出现对话框 当升华开始对话框出现

尝试使用tern_for_sublime命令时

Go to the location said in the error: C:...AppData\\Roaming\\Sublime Text 3\\Packages\\tern_for_sublime. and then open a cmd window there in that directory. Then type

    npm install

that should install ternjs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM