No bower packages available

I just download Webstorm (under 30-day trial) and setting up my first NodeJS project. I have Bower installed globally. I went to the embedded terminal and initialized Bower (bower init). When I go into settings / bower, and click on the + sign to install a package, the Available Packages shows no packages. However, I can install the packages through the terminal.

Why are no packages listed in the Available Packages screen?

Thanks.

7 comments
Comment actions Permalink

'bower search --json' command WebStorm runs when populating the list of available packages takes noticeable time, so you have to wait a bit until the packages appear.

0
Comment actions Permalink

I have waited for several minutes several times until it has finished loading, but it doesn't come back with any package. I think there's some problem.

0
Comment actions Permalink

please can you attach your idea.log?

0
Comment actions Permalink

I don't want to post the entire log file in the forum, but I found the relevants lines:

2015-06-06 12:58:49,070 [2614195]   INFO - ipt.bower.BowerCommandLineUtil - Running bower command: C:\Users\<user>\AppData\Roaming\npm\bower.cmd search --json
2015-06-06 12:58:50,487 [2615612]   WARN - .BowerAvailablePackagesManager - Can't load all available packages
com.intellij.execution.ExecutionException: Command 'C:\Users\<user>\AppData\Roaming\npm\bower.cmd search --json' is timed out.

 at com.intellij.lang.javascript.bower.BowerCommandLineUtil.runBowerCommand(BowerCommandLineUtil.java:39)

 at com.intellij.lang.javascript.bower.BowerAvailablePackagesManager.loadPackageNames(BowerAvailablePackagesManager.java:47)

 at com.intellij.lang.javascript.bower.BowerAvailablePackagesManager.getOrLoadAvailablePackages(BowerAvailablePackagesManager.java:34)

 at com.intellij.lang.javascript.bower.BowerPackagingService.doGetPackages(BowerPackagingService.java:62)

 at com.intellij.lang.javascript.bower.BowerPackagingService.getAllPackages(BowerPackagingService.java:53)

 at com.intellij.webcore.packaging.ManagePackagesDialog$10.run(ManagePackagesDialog.java:321)

 at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)

 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

 at java.util.concurrent.FutureTask.run(FutureTask.java:266)

 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

 at java.lang.Thread.run(Thread.java:745)

 at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)


Let me know if this is not sufficient.

0
Comment actions Permalink

So it failes because of time out. Please try running the same command in terminal - how much time does it take?

0
Comment actions Permalink

It worked from the command line but took about 4.5 mins.

0
Comment actions Permalink

I see. The time out is set to 120 sec.
I've logged https://youtrack.jetbrains.com/issue/WEB-16843 asking for notification in UI when searching fails because of time out

0

Please sign in to leave a comment.