hrueger / ngx-onlyoffice

An OnlyOffice wrapper library for Angular.
MIT License
7 stars 7 forks source link

ngx-onlyoffice #55

Open parthrana4 opened 3 years ago

parthrana4 commented 3 years ago

npm ERR! Refusing to install package with name "ngx-onlyoffice" under a package npm ERR! also called "ngx-onlyoffice". Did you name your project the same npm ERR! as the dependency you're installing? @hrueger can you help with this

hrueger commented 3 years ago

HI @parthrana4 , What are you trying to do? Please include steps to reproduce this issue and please don't comment about this problem on other issues.

parthrana4 commented 3 years ago

Hi @hrueger I am trying to setup on my system while installing ngx-onlyoffice it is giving error

hrueger commented 3 years ago

What commands are you running? Please provide a precise description of what exactly you are doing and what commands you are running.

parthrana4 commented 3 years ago

Hi @hrueger ,i am trying to setup onlyoffice with angular using following command but getting this error

D:\Program Files\angular11\ngx-onlyoffice-master>npm i ngx-onlyoffice npm ERR! code ENOSELF npm ERR! Refusing to install package with name "ngx-onlyoffice" under a package
npm ERR! also called "ngx-onlyoffice". Did you name your project the same npm ERR! as the dependency you're installing? npm ERR! npm ERR! For more information, see: npm ERR! https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Parth\AppData\Roaming\npm-cache_logs\2021-04-19T11_55_45_855Z-debug.log

hrueger commented 3 years ago

@parthrana4 What is D:\Program Files\angular11\ngx-onlyoffice-master? Did you clone this repository or is this your project where you want to use it?

parthrana4 commented 3 years ago

@hrueger i cloned repo here to use it

hrueger commented 3 years ago

@parthrana4 Ok, so that is where your error comes from. ngx-onlyoffice is a libary which you can install in your own project. You don't have to clone this repo. Instead, just create a new Angular project using ng new and then install this library using npm i ngx-onlyoffice.

parthrana4 commented 3 years ago

@hrueger After doing above step what ,i need to do 1)I have already downloaded docker and onlyoffice image

hrueger commented 3 years ago

@parthrana4 Sorry for the late answer. You need to parts to get ONLYOFFICE working: You need a frontend application which embeds the Editor. This is where ngx-onlyoffice can help you. That is this part of the documentation. Then, you also need a backend service which manages your files, reads and writes them. You need to implement this yourself, for Example in NodeJS or PHP. Check out the docs here.

You can find the full documentatation on how ONLYOFFICE works here.