using npm to install grunt locally doesn't find nodejs

Bug #1221904 reported by Old Account
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nodejs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Version of linux mint: 15 "olivia", edition is Cinnamon 32-bit

I installed npm: apt-get install npm

I then installed `grunt` globally: sudo npm install -g grunt

This installed the `grunt` script in /usr/local/bin/grunt

Unfortunately, the script for `grunt` uses #!/usr/bin/env node to try and locate the NodeJS executable. Linux Mint installs nodejs in the location /usr/bin/nodejs rather than in /usr/bin/node which means it cannot be found by `grunt` and I assume that other modules installed via npm won't be able to find it other.

I would suggest that the nodejs package also include a symbolic link named /usr/bin/node (or even /usr/local/bin/node) to /usr/bin/nodejs so that grunt will work.

This might also be an issue with the npm package.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nodejs (Ubuntu):
status: New → Confirmed
affects: linuxmint → nodejs (Ubuntu)
Revision history for this message
kapouer (kapouer) wrote :

 don't you have nodejs-legacy package ?

Revision history for this message
Christian (chrwahl) wrote :

I have the same issue on Ubuntu. I reported it here: https://bugs.launchpad.net/ubuntu/+source/nodejs/+bug/1583515

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nodejs (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.