node-xmpp-serviceadmin icon indicating copy to clipboard operation
node-xmpp-serviceadmin copied to clipboard

Error : packages.json contains reference to lib folder

Open gpadbidri opened this issue 10 years ago • 4 comments

I tried installing the package, but seems like there is an error which I captured in the screenshot : http://screencast.com/t/nOZU7iTi9K0f

NOTE : I have manually pasted the downloaded package from GIT. Also, one observation that package.json has a line : "main": "./lib/ServiceAdmin", but there is NO LIB folder in the download. Is this an issue, and Can you help me resolve this issue ?

gpadbidri avatar Apr 02 '15 17:04 gpadbidri

Did you try to run npm i /path/to/downloaded/node-xmpp-serviceadmin/ ?

but there is NO LIB folder in the download.

correct!

Is this an issue,

no, its a feature :) running npm i or npm publish executes npm run prepublish that compiles the coffee sources to lib/ServiceAdmin.js

and Can you help me resolve this issue ?

You could compile the source (npm run prepublish) before using ist ;-)

flosse avatar Apr 02 '15 18:04 flosse

Thanks for your reply...I am executing this PACKAGE on Windows 8...And I see the following error captured in the screenshot : http://screencast.com/t/zLoYveJgD9s

Can you provide me a pre-compiled LIB folder or any help around resolving this issue ?

gpadbidri avatar Apr 03 '15 06:04 gpadbidri

Can you provide me a pre-compiled LIB folder

you can use the npmjs repository by just typing npm i node-xmpp-serviceadmin

Or install the deps and compile the source:

cd /path/to/downloaded/node-xmpp-serviceadmin/
npm i
npm run prepublish

then you should be able to install it

cd /path/to/your/project/
npm i /path/to/downloaded/node-xmpp-serviceadmin/

flosse avatar Apr 03 '15 10:04 flosse

Thanks ! I have some progrees there !

gauripadbidri avatar May 06 '15 14:05 gauripadbidri