EACCES error when running npm link


#1

I’m trying to run npm link ./utils from within a project that has a utils directory, but I’m getting an EACCES error. As I’m only trying to create a symlink to something that is local, is there a way around the error? Are there any plan to support symlinking in the future?

Thanks,

Ben


#2

Have you tried creating the symlink from the terminal, using the syntax:
ln -s source_file myfile?

you may also need to make your symlink use a non-relative path: https://unix.stackexchange.com/questions/84175/create-a-symbolic-link-relative-to-the-current-directory

hopefully that helps/works!

source: https://kb.iu.edu/d/abbe