This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256479

Summary: bower.json can not be found while it is already created
Product: javascript Reporter: emrahtoy
Component: LibrariesAssignee: Tomas Mysik <tmysik>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
Trying with IDE
Trying with terminal

Description emrahtoy 2015-11-10 00:39:36 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Linux version 3.19.0-32-generic running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens every time

STEPS:
  * Right click bower.json file in Projects pane
  * Click install

ALSO:
  Project properties -> Javascript Libraries -> Bower says bower.json not found.

ACTUAL:
  nothing happens
  "/usr/local/bin/bower" "install"
  bower                           ENOENT No bower.json present
  Done.

EXPECTED:
  Installing dependencie
Comment 1 emrahtoy 2015-11-10 00:39:40 UTC
Created attachment 157245 [details]
IDE log
Comment 2 emrahtoy 2015-11-10 00:42:36 UTC
Created attachment 157246 [details]
Trying with IDE
Comment 3 emrahtoy 2015-11-10 00:42:42 UTC
Created attachment 157247 [details]
Trying with terminal
Comment 4 emrahtoy 2015-11-10 00:57:45 UTC
I guess i have got the problem.

My netbeans project files/folder is separated

when i try to create bower.json ( or package.json ) by right clicking project name it creates the file at where the netbeans project files/folder.

so the file i created by myself into source directory is not working.
Comment 5 Tomas Mysik 2016-07-19 13:11:15 UTC
Taking over.
Comment 6 Tomas Mysik 2016-07-21 11:17:56 UTC
Yes, the "project" bower.json (and also package.json to be precise) must be directly in the _project_ directory. If this is not your case, you will not be able to add/remove/update its libraries via the Project Properties dialog, sorry.

Thanks.