-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't install with npm command #4
Comments
|
@vladwing
I have installed icu: RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
build-essential \
pkg-config \
libicu-dev \
python3.7-icu In fact it works when in Python: import icu
from icu import Locale,BreakIterator
#... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's show like this when 'npm install node-icu-wordsplit' was complete.
../src/wordsplit.cc: In function ‘void wordsplit::SplitWords(const Nan::FunctionCallbackInfov8::Value&)’:
../src/wordsplit.cc:38:55: error: invalid conversion from ‘uint16_t* {aka short unsigned int*}’ to ‘const UChar* {aka const char16_t*}’ [-fpermissive]
icu::UnicodeString uTextArg(cTextArg, text->Length());
^
In file included from /usr/local/include/unicode/brkiter.h:45:0,
from ../src/wordsplit.cc:3:
/usr/local/include/unicode/unistr.h:2911:3: error: initializing argument 1 of ‘icu_50::UnicodeString::UnicodeString(const UChar*, int32_t)’ [-fpermissive]
UnicodeString(const UChar *text,
^
make: *** [Release/obj.target/wordsplit/src/wordsplit.o] Error 1
make: Leaving directory
/mnt/d/BeamRobotic/OneDrive/SourceCodes/Flowaccount_Projects/test/node_modules/icu-wordsplit/build' gyp ERR! build error gyp ERR! stack Error:
make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-43-Microsoft
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /mnt/d/BeamRobotic/OneDrive/SourceCodes/Flowaccount_Projects/test/node_modules/icu-wordsplit
gyp ERR! node -v v8.5.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/beamrobotic/.npm/_logs/2017-09-23T12_00_10_594Z-debug.log
The text was updated successfully, but these errors were encountered: