Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Not installing correctly on Mac #353

Closed
KidsKilla opened this Issue · 11 comments

4 participants

@KidsKilla
kkmacpro:rmaps kidskilla$ sudo npm i forever -g
npm http GET https://registry.npmjs.org/forever
...
npm http GET https://registry.npmjs.org/utile/0.1.2
npm ERR! Error: ENOENT, open '/usr/local/share/npm/lib/node_modules/forever/node_modules/winston/node_modules/request/tests/server.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Darwin 12.2.0
npm ERR! command "/usr/local/Cellar/node/0.8.14/bin/node" "/usr/local/bin/npm" "i" "forever" "-g"
npm ERR! cwd /Users/kidskilla/Documents/RMaps
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! path /usr/local/share/npm/lib/node_modules/forever/node_modules/winston/node_modules/request/tests/server.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOTDIR, mkdir '/Users/kidskilla/tmp/npm-12872/1353330573587-0.6982090279925615'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Darwin 12.2.0
npm ERR! command "/usr/local/Cellar/node/0.8.14/bin/node" "/usr/local/bin/npm" "i" "forever" "-g"
npm ERR! cwd /Users/kidskilla/Documents/RMaps
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! path /Users/kidskilla/tmp/npm-12872/1353330573587-0.6982090279925615
npm ERR! code ENOTDIR
npm ERR! errno 27
npm ERR! Error: ENOENT, lstat '/usr/local/share/npm/lib/node_modules/forever/node_modules/flatiron/node_modules/director/test/browser/helpers/jquery.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Darwin 12.2.0
npm ERR! command "/usr/local/Cellar/node/0.8.14/bin/node" "/usr/local/bin/npm" "i" "forever" "-g"
npm ERR! cwd /Users/kidskilla/Documents/RMaps
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! path /usr/local/share/npm/lib/node_modules/forever/node_modules/flatiron/node_modules/director/test/browser/helpers/jquery.js
npm ERR! fstream_path /usr/local/share/npm/lib/node_modules/forever/node_modules/flatiron/node_modules/director/test/browser/helpers/jquery.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack Writer._finish.er.fstream_finish_call (/usr/local/Cellar/node/0.8.14/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26)
npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/parse-table
npm WARN package.json parse-table@0.0.0 No README.md file found!
npm http GET https://registry.npmjs.org/event-stream
...
npm http 304 https://registry.npmjs.org/ini
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/kidskilla/Documents/RMaps/npm-debug.log
npm ERR! not ok code 0
kkmacpro:rmaps kidskilla$ 
@mmalecki

It installs just fine for me, so I'll close this. I'm happy to help with getting you to install it tho..

How did you install node?
rm -rf /usr/local/share/npm/lib/node_modules/forever /Users/kidskilla/tmp/npm-* should help.

@mmalecki mmalecki closed this
@KidsKilla
@KidsKilla

I asked my colleague to install forever.
He installed node via brew and then installed forever globally.
And there was the same problem: no forever command in the system.

He uses just the same mac as I do.

@AvianFlu

Do yourselves a favor, and don't install node with brew. I've never seen more mysterious misconfigurations and random segfaults than with brew installs of node.

The error you're seeing usually indicates an old install that wasn't properly removed, or a bad npm cache. Try using npm cache clear, removing the forever part of that path, and trying again.

@KidsKilla

Thanks, got it about brew.

I've also discovered that there was a file ~/tmp
When I deleted it installation finished just fine.

But still there is no "forever" command in my system.

@indexzero
Owner

This is most likely brews fault. Just use the installer from nodejs.org/download

@KidsKilla

Well, there is no problem with brew -- I didn't use it for node and installed node with dmg.
NPM threw error because of ~/tmp FILE instead of folder, that I already deleted.
Now the problem is that after "npm i forever -g" there is no forever command in the system.

@indexzero
Owner

You should make sure the appropriate things are in your $PATH

@KidsKilla

OK, could you tell me where and what things should I see? =)

@indexzero
Owner

Run:

echo $PATH

You should make sure that /usr/local/share/npm/bin is in there. If not add something like this to your .profile or .bash_profile

export PATH = $PATH:/usr/local/share/npm/bin
@KidsKilla

Yep, it helped. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.