Open ccoenen opened 7 years ago
Both libs are already set as optional ones.
Install it via npm install --no-optional
Both libs are already set as optional ones. Install it via
npm install --no-optional
Does that not give the following error on every incoming message?
ERROR: Error: Cannot find module 'node-icu-charset-detector'
It does so for me anyway.
EDIT: Only when debug is turned on. Still feels needlessly spammy though.
even though, ICONV is an optional dependency, please consider making it a peer dependency, people like me who need debug mode don't maybe still dont want to see messages like this missing package.
as peer dependency one can decide on his own to install the package and compile it, otherwise ignore it and don't have to mess around with spammed logs.
And/Or switch to using iconv-lite
and jschardet
per https://github.com/mooz/node-icu-charset-detector/issues/32#issuecomment-296349795
To solve node-gyp error on Windows, see a guide here: https://github.com/nodejs/node-gyp#installation (using windows-build-tools
is the easiest way)
As for node-icu-charset-detector, here's a guide based on the comment above:
Download this archive and extract it somewhere http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-Win64-MSVC2015.zip
Add ICU_DIRECTORY
environment variable (expandable string) that points to extracted folder (e.g. d:\Downloads\icu
)
Replace line 70 in package.json
with
"node-icu-charset-detector": "git://github.com/shiftkey/node-icu-charset-detector.git#dev"
Run npm install
(optional) If you still see an error, remove node-icu-charset-detector
from optionalDependencies
in package.json
and repeat step 4
I know and have read through #390 and especially https://github.com/martynsmith/node-irc/issues/390#issuecomment-139427307. I know that node-irc works on windows even without iconv and node-icu... so why am I complaining?
I'm on a windows machine right now and I am preparing an exercise for a few students, half of which are on windows laptops. The project involves node-irc. Whenever
npm install
is invoked, a wall of errors will appear. Mind you, not on first install ofnode-irc
but on every single future invocation as well.Things I would like to avoid:
The only way I can think of to avoid that is by making the dependencies optional in some way. I'm open to other suggestions.