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 248780

Summary: Auto complete NPM path based on Node.js path and vice versa in Options
Product: javascript Reporter: Jiri Kovalsky <jkovalsky>
Component: Node.jsAssignee: Tomas Mysik <tmysik>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P2    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jiri Kovalsky 2014-11-20 13:34:28 UTC
Product Version: NetBeans IDE Dev (Build 201411200001)
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-24-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev

If user does not have 'node' and 'npm' commands on PATH, these needs to be configured properly in "Tools > Options > Miscellaneous > Node.js". To save time it would be nice if right after browsing to 'node' command e.g. '/home/cesilko/Software/NodeJS_0.10.29/bin/node' NetBeans would check if '/home/cesilko/Software/NodeJS_0.10.29/bin/npm' exists and if so it would automatically fill out the second field for 'npm' binary. I am sure that users will love it! :)
Comment 1 Tomas Mysik 2014-11-20 13:36:02 UTC
Good idea, will do it.

Thanks.