senchalabs / connect

Connect is a middleware layer for Node.js
MIT License
9.84k stars 1.09k forks source link

cannot install connect using npm #1110

Closed MPE2016 closed 6 years ago

MPE2016 commented 6 years ago

this is the error readout. I see, of course, that it has something to do with permissions and the path, but I can't really say what is causing it.

Help is much appreciated!

npm WARN checkPermissions Missing write access to /home/maarten/node_modules/connect npm WARN enoent ENOENT: no such file or directory, open '/home/maarten/package.json' npm WARN maarten No description npm WARN maarten No repository field. npm WARN maarten No README data npm WARN maarten No license field.

npm ERR! path /home/maarten/node_modules/connect npm ERR! code ELOOP npm ERR! errno -40 npm ERR! syscall access npm ERR! ELOOP: too many symbolic links encountered, access '/home/maarten/node_modules/connect'

dougwilson commented 6 years ago

Hi! I'm sorry you're having trouble. I tried to install and didn't have an issue. Are you able to install a different module?

MPE2016 commented 6 years ago

Hi!,

okay, that's definitely one piece of the puzzle. I can't seem to install any module at all.

So I guess my install of npm is probably the culprit. Any thoughts on that?

Thanks a million!

M

On Wed, 24 Oct 2018 05:04:42 -0700, Douglas Wilson wrote:

Hi! I'm sorry you're having trouble. I tried to install and didn't have an issue. Are you able to install a different module?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub:

https://github.com/senchalabs/connect/issues/1110#issuecomment-432628094

MPE2016 commented 6 years ago

Hi Douglas, I think I've fixed it sorry for wasting your time,

Well I guess this proves that I'm still a complete moron when it comes to nodejs. I just realised that I need to place a new nodejs project in its own folder (i.e. not the home directory). Then, after running the 'npm init' command I was able to install connect just fine.

Thanks again for responding, and once again sorry for wasting your time.

All the best,

MPE

On Wed, 24 Oct 2018 05:04:42 -0700, Douglas Wilson wrote:

Hi! I'm sorry you're having trouble. I tried to install and didn't have an issue. Are you able to install a different module?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub:

https://github.com/senchalabs/connect/issues/1110#issuecomment-432628094

dougwilson commented 6 years ago

Hi @MPE2016 sorry I was out after my initial message and didn't reply very quickly. I'm glad you got it sorted 👍 I'm happy to help out, so not really a waste of time for me.