Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not installing correctly on Mac #353

Closed
maxim-grishaev opened this issue Nov 19, 2012 · 11 comments
Closed

Not installing correctly on Mac #353

maxim-grishaev opened this issue Nov 19, 2012 · 11 comments

Comments

@maxim-grishaev
Copy link

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
Copy link
Contributor

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.

@maxim-grishaev
Copy link
Author

Thank you!

Node was installed via DMG file manually.
I tried to install it with brew, but brew coldn't "brew link node".

Too bad, but your code didn't help either =(

Well, forever installed fine for the first time.
But when I tried to run it appeared that there is no "forever" command in the system.
I even resarted my console, but it didn't help.
After that I tried to remove module and install it again and I saw that errors.

BTW it installed normally on actual FreeBSD and fail at my OS X 10.8.2

Максим Гришаев
maxim.grishaev@gmail.com

20.11.2012, в 14:22, Maciej Małecki notifications@github.com написал(а):

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.


Reply to this email directly or view it on GitHub.

@maxim-grishaev
Copy link
Author

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
Copy link
Contributor

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.

@maxim-grishaev
Copy link
Author

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
Copy link
Member

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

@maxim-grishaev
Copy link
Author

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
Copy link
Member

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

@maxim-grishaev
Copy link
Author

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

@indexzero
Copy link
Member

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

@maxim-grishaev
Copy link
Author

Yep, it helped. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants