using npm to install grunt locally doesn't find nodejs
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/
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/
This might also be an issue with the npm package.
affects: | linuxmint → nodejs (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.