websockets / utf-8-validate Goto Github PK
View Code? Open in Web Editor NEWCheck if a buffer contains valid UTF-8
License: Other
Check if a buffer contains valid UTF-8
License: Other
Thanks to the wonders of key commands in web apps, this was the result of typing clear
in something that isn't a terminal.
after i runn the command i get this;
"> [email protected] install /home/toypad/LD-ToyPad-Emulator/node_modules/utf-8-validate
node-gyp-build
make: Entering directory '/home/toypad/LD-ToyPad-Emulator/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
CXX(target) Release/obj.target/validation/deps/is_utf8/src/is_utf8.o
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Leaving directory '/home/toypad/LD-ToyPad-Emulator/node_modules/utf-8-validate/build'
npm WARN [email protected] requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
Is it instaled or am i doing something wrong?
Branch | Build failing 🚨 |
---|---|
Dependency | prebuild-ci |
Current Version | 2.2.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As prebuild-ci is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.
I recommend you give this issue a high priority. I’m sure you can resolve this 💪
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
4.1.0
to 4.1.1
.This version is covered by your current version range and after updating it in your project the build failed.
node-gyp-build is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 4 commits.
e18b05e
4.1.1
e70444d
Mark end of options to /bin/sh with "--" (#26)
81e3715
Upgrade standard devDependency from ^13.0.2 to ^14.0.0 (#25)
362a1ad
Upgrade standard devDependency from ^8.6.0 to ^13.0.2 (#23)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
When running npm install [email protected]
on an armv6 system (a raspi model B with raspian bullseye and its most recent arvm6 node version 10.15.0 in this case), the build fails since python2 is end-of-life and not installed anymore.
System info:
$ npm -v
6.7.0
$ node -v
v11.15.0
$ uname -a
Linux piB 5.15.32+ #1538 Thu Mar 31 19:37:58 BST 2022 armv6l GNU/Linux
Complete stacktrace:
$ npm install [email protected]
> [email protected] install /home/pi/cyp/node_modules/utf-8-validate
> node-gyp-build
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:299:12)
gyp ERR! stack at ChildProcess.emit (events.js:193:13)
gyp ERR! stack at maybeClose (internal/child_process.js:999:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:403:11)
gyp ERR! stack at Socket.emit (events.js:193:13)
gyp ERR! stack at Pipe._handle.close (net.js:614:12)
gyp ERR! System Linux 5.15.32+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/cyp/node_modules/utf-8-validate
gyp ERR! node -v v11.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp-build`
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.
[root@wsgateway nodetest]# npm i utf-8-validate
npm http GET https://registry.npmjs.org/utf-8-validate
npm http 304 https://registry.npmjs.org/utf-8-validate
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
[email protected] install /var/www/html/nodetest/node_modules/utf-8-validate
node-gyp rebuild
make: Entering directory /var/www/html/nodetest/node_modules/utf-8-validate/build' CXX(target) Release/obj.target/validation/src/validation.o In file included from ../src/validation.cc:15: ../../nan/nan.h:316: error: âREPLACE_INVALID_UTF8â is not a member of âv8::Stringâ make: *** [Release/obj.target/validation/src/validation.o] Error 1 make: Leaving directory
/var/www/html/nodetest/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-431.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/html/nodetest/node_modules/utf-8-validate
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
This is debian 8 with npm 1.4.21 and node-gyp v0.12.2
drazisil@Lightning:~/$ sudo npm install -g utf-8-validate/
[email protected] install /usr/local/lib/node_modules/utf-8-validate
node-gyp rebuild
make: Entering directory '/usr/local/lib/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../src/validation.cc:15:0:
../node_modules/nan/nan.h:328:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
validation.target.mk:86: recipe for target 'Release/obj.target/validation/src/validation.o' failed
make: *** [Release/obj.target/validation/src/validation.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.16.0-4-amd64
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/utf-8-validate
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
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 most likely a problem with the utf-8-validate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls utf-8-validate
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "utf-8-validate"
npm ERR! cwd /home/drazisil/dev/jwebgen-js
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/drazisil/dev/jwebgen-js/npm-debug.log
npm ERR! not ok code 0
drazisil@Lightning:~/$
Running npm install on io.js 3.0, there are a fair number of compilation errors. Upgrading to nan 2.x is part of the solution but it looks like nan changed a bunch of APIs too. This is the compiler output after upgrading nan:
npm WARN package.json [email protected] No README data
|
> [email protected] install /Users/ide/Code/utf-8-validate
> node-gyp rebuild
CXX(target) Release/obj.target/validation/src/validation.o
../src/validation.cc:109:5: error: use of undeclared identifier 'NanScope'
NanScope();
^
../src/validation.cc:110:33: error: use of undeclared identifier 'NanNew'
Local<FunctionTemplate> t = NanNew<FunctionTemplate>(New);
^
../src/validation.cc:110:40: error: 'FunctionTemplate' does not refer to a value
Local<FunctionTemplate> t = NanNew<FunctionTemplate>(New);
^
/Users/ide/.node-gyp/3.0.0/include/node/v8.h:4108:17: note: declared here
class V8_EXPORT FunctionTemplate : public Template {
^
../src/validation.cc:112:5: error: no matching function for call to 'NODE_SET_METHOD'
NODE_SET_METHOD(t, "isValidUTF8", Validation::IsValidUTF8);
^~~~~~~~~~~~~~~
/Users/ide/.node-gyp/3.0.0/include/node/node.h:248:25: note: expanded from macro 'NODE_SET_METHOD'
#define NODE_SET_METHOD node::NODE_SET_METHOD
^~~~~~~~~~~~~~~~~~~~~
/Users/ide/.node-gyp/3.0.0/include/node/node.h:236:13: note: candidate function [with TypeName = v8::Local<v8::FunctionTemplate>] not
viable: no known conversion from 'Nan::NAN_METHOD_RETURN_TYPE (Nan::NAN_METHOD_ARGS_TYPE)' to 'v8::FunctionCallback' (aka 'void
(*)(const FunctionCallbackInfo<v8::Value> &)') for 3rd argument
inline void NODE_SET_METHOD(const TypeName& recv,
^
../src/validation.cc:113:17: error: use of undeclared identifier 'NanNew'
target->Set(NanNew<String>("Validation"), t->GetFunction());
^
../src/validation.cc:113:24: error: 'String' does not refer to a value
target->Set(NanNew<String>("Validation"), t->GetFunction());
^
/Users/ide/.node-gyp/3.0.0/include/node/v8.h:2028:17: note: declared here
class V8_EXPORT String : public Name {
^
../src/validation.cc:120:5: error: use of undeclared identifier 'NanScope'
NanScope();
^
../src/validation.cc:122:22: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
validation->Wrap(args.This());
^~~~
uv_process_options_s::args
/Users/ide/.node-gyp/3.0.0/include/node/uv.h:857:10: note: 'uv_process_options_s::args' declared here
char** args;
^
../src/validation.cc:122:22: error: invalid use of member 'args' in static member function
validation->Wrap(args.This());
^~~~
../src/validation.cc:123:20: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
NanReturnValue(args.This());
^~~~
uv_process_options_s::args
/Users/ide/.node-gyp/3.0.0/include/node/uv.h:857:10: note: 'uv_process_options_s::args' declared here
char** args;
^
../src/validation.cc:123:20: error: invalid use of member 'args' in static member function
NanReturnValue(args.This());
^~~~
../src/validation.cc:128:5: error: use of undeclared identifier 'NanScope'
NanScope();
^
../src/validation.cc:129:30: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
if (!Buffer::HasInstance(args[0])) {
^~~~
uv_process_options_s::args
/Users/ide/.node-gyp/3.0.0/include/node/uv.h:857:10: note: 'uv_process_options_s::args' declared here
char** args;
^
../src/validation.cc:129:30: error: invalid use of member 'args' in static member function
if (!Buffer::HasInstance(args[0])) {
^~~~
../src/validation.cc:130:14: error: use of undeclared identifier 'NanThrowTypeError'; did you mean 'Nan::ThrowTypeError'?
return NanThrowTypeError("First argument needs to be a buffer");
^~~~~~~~~~~~~~~~~
Nan::ThrowTypeError
../node_modules/nan/nan.h:645:3: note: 'Nan::ThrowTypeError' declared here
X(TypeError)
^
../node_modules/nan/nan.h:629:21: note: expanded from macro 'X'
NAN_INLINE void Throw ## NAME(const char *msg) { \
^
<scratch space>:217:1: note: expanded from here
ThrowTypeError
^
../src/validation.cc:132:32: error: use of undeclared identifier 'args'; did you mean 'uv_process_options_s::args'?
Local<Object> buffer_obj = args[0]->ToObject();
^~~~
uv_process_options_s::args
/Users/ide/.node-gyp/3.0.0/include/node/uv.h:857:10: note: 'uv_process_options_s::args' declared here
char** args;
^
../src/validation.cc:132:32: error: invalid use of member 'args' in static member function
Local<Object> buffer_obj = args[0]->ToObject();
^~~~
../src/validation.cc:135:69: error: use of undeclared identifier 'NanTrue'
NanReturnValue(is_valid_utf8(buffer_length, buffer_data) == 1 ? NanTrue() : NanFalse());
^
../src/validation.cc:135:81: error: use of undeclared identifier 'NanFalse'
NanReturnValue(is_valid_utf8(buffer_length, buffer_data) == 1 ? NanTrue() : NanFalse());
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/validation/src/validation.o] Error 1
On windows 7 with electron the module gives a crash on app exit.
This happens on this line :
module.exports = require('node-gyp-build')(__dirname);
if i remove that line and use only :
module.exports = require('./fallback');
everything works great.
OS: Win 7 64bits
Electron : 3.1.13 , 32Bits
I believe this is an issue with installing the latest version of XCode not creating all the symlinks it use to. bufferutil had a similar issue, websockets/bufferutil#17. I was able to fix the issue following the advice in that PR:
$ cd /usr/local/lib
$ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib
$ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.4.dylib
Here's the console output of npm install:
npm install utf-8-validate
> [email protected] install /Users/scott.phillips/IdeaProjects/cloud-grunt-common/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/validation.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/scott.phillips/.node_modules/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "node" "/Users/scott.phillips/.node_modules/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/scott.phillips/IdeaProjects/cloud-grunt-common/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm WARN install:utf-8-validate [email protected] install: `node-gyp rebuild`
npm WARN install:utf-8-validate Exit status 1
> [email protected] install /Users/scott.phillips/IdeaProjects/cloud-grunt-common/node_modules/utf-8-validate
> node-gyp rebuild
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/validation.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/scott.phillips/.node_modules/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "node" "/Users/scott.phillips/.node_modules/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/scott.phillips/IdeaProjects/cloud-grunt-common/node_modules/utf-8-validate
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
- [email protected] node_modules/utf-8-validate/node_modules/nan
npm WARN EPEERINVALID [email protected] requires a peer of karma@^0.12 || >= 0.13.0-rc.0 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of karma@>=0.9 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of karma@>=0.9 but none was installed.
npm WARN EPACKAGEJSON [email protected] No description
npm WARN EPACKAGEJSON [email protected] license should be a valid SPDX license expression
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/Users/scott.phillips/.node_modules/bin/npm" "install" "utf-8-validate"
npm ERR! node v0.12.0
npm ERR! npm v3.3.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the utf-8-validate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls utf-8-validate
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/scott.phillips/IdeaProjects/cloud-grunt-common/npm-debug.log
Cheers!
I feel very confused
I use puppeteer-in-electron in project
• rebuilding native dependencies [email protected], [email protected] platform=win32 arch=x64
⨯ cannot execute cause=exit status 1
errorOut=npm WARN using --force Recommended protections disabled.
npm ERR! code 1
npm ERR! path /Users/xxxxx/electron-vite-bi/node_modules/utf-8-validate
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! CC(target) Release/obj.target/validation/src/validation.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | x64
npm ERR! gyp info find Python using Python version 3.10.1 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3"
npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
npm ERR! gyp info spawn args [
npm run dev (vite)is ok
npm run build (vue-tsc && vite build --mode test && electron-builder --win) failed
There's similar node-gyp rebuild
error like on linux #18 and mac os #19.
VCBUILD : error : project file 'C:\Users\admin\AppData\Roaming\npm\node_modules\gfms\node_modules\utf-8-validate\build\validation.vcproj' was not found or not a valid project file. [C:\Users\admin\AppData\Roaming\npm\node_modules\gfms\node_modules\utf-8-validate\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\admin\\AppData\\Roaming\\npm\\node_modules\\npm\\node_m
odules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\admin\AppData\Roaming\npm\node_modules\gfms\node_modules\utf-8-validate
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
I'm on a macOS Sierra 12.10.6, using yarn.
When I try to install this package, it fails with the following error:
error /Users/aryzing/workspace/utf8testyarn/node_modules/utf-8-validate: Command failed.
Exit code: 127
Command: prebuild-install || node-gyp rebuild
Arguments:
Directory: /Users/aryzing/workspace/utf8testyarn/node_modules/utf-8-validate
Output:
prebuild-install info begin Prebuild-install version 2.3.0
prebuild-install info looking for local prebuild @ prebuilds/utf-8-validate-v3.0.4-node-v57-darwin-x64.tar.gz
prebuild-install info looking for cached prebuild @ /Users/aryzing/.npm/_prebuilds/https-github.com-websockets-utf-8-validate-releases-download-v3.0.4-utf-8-validate-v3.0.4-node-v57-darwin-x64.tar.gz
I've also tried it on a linux machine, and it works fine. Could this be mac related?
I am using NodeJS version 10.15.3
error Windows_NT 6.1.7601
198 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "utf-8-validate"
199 error node v0.12.0
200 error npm v2.7.3
201 error code ELIFECYCLE
202 error [email protected] install: node-gyp rebuild
202 error Exit status 1
203 error Failed at the [email protected] install script 'node-gyp rebuild'.
203 error This is most likely a problem with the utf-8-validate package,
203 error not with npm itself.
203 error Tell the author that this fails on your system:
203 error node-gyp rebuild
203 error You can get their info via:
203 error npm owner ls utf-8-validate
203 error There is likely additional logging output above.
204 verbose exit [ 1, true ]
nan
module dependency should be upgraded to 1.8.x
.
Or ^1.8.0
or ^1.6.0
if you don't want to update package.json
for each minor version of the nan
module.
[email protected] install /Users/mark/node_modules/utf-8-validate
node-gyp rebuild
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EPERM, chmod '/var/root/.node-gyp/0.12.7'
gyp ERR! stack at Error (native)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/mark/node_modules/utf-8-validate
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 15.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "utf-8-validate"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the utf-8-validate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls utf-8-validate
npm ERR! There is likely additional logging output above.
node -v v10.8.0
npm -v 6.2.0
`npm i -g [email protected]
[email protected] install /usr/lib/node_modules/utf-8-validate
prebuild-install || node-gyp rebuild
prebuild-install info begin Prebuild-install version 2.3.0
prebuild-install info looking for local prebuild @ prebuilds/utf-8-validate-v3.0.4-node-v64-linux-x64.tar.gz
prebuild-install info looking for cached prebuild @ /root/.npm/_prebuilds/https-github.com-websockets-utf-8-validate-releases-download-v3.0.4-utf-8-validate-v3.0.4-node-v64-linux-x64.tar.gz
prebuild-install http request GET https://github.com/websockets/utf-8-validate/releases/download/v3.0.4/utf-8-validate-v3.0.4-node-v64-linux-x64.tar.gz
prebuild-install http 404 https://github.com/websockets/utf-8-validate/releases/download/v3.0.4/utf-8-validate-v3.0.4-node-v64-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=10.8.0 runtime=node arch=x64 platform=linux)
make: Entering directory /usr/lib/node_modules/utf-8-validate/build' CXX(target) Release/obj.target/validation/src/validation.o In file included from ../node_modules/nan/nan.h:192:0, from ../src/validation.cc:7: ../node_modules/nan/nan_maybe_43_inl.h: In function 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)': ../node_modules/nan/nan_maybe_43_inl.h:112:15: error: 'class v8::Object' has no member named 'ForceSet' return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs); ^ In file included from ../src/validation.cc:7:0: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)': ../node_modules/nan/nan.h:835:60: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.8.0/include/node/node.h:171): Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)': ../node_modules/nan/nan.h:850:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.8.0/include/node/node.h:164): Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)': ../node_modules/nan/nan.h:865:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.8.0/include/node/node.h:157): Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ ../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const': ../node_modules/nan/nan.h:1479:5: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.8.0/include/node/node.h:171): Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ make: *** [Release/obj.target/validation/src/validation.o] Error 1 make: Leaving directory
/usr/lib/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Linux 3.10.0-862.3.3.el7.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/utf-8-validate
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: prebuild-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! /root/.npm/_logs/2018-08-10T07_06_23_519Z-debug.log`
g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
6.2.1
to 6.2.2
.This version is covered by your current version range and after updating it in your project the build failed.
mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
EVENT_RUN_END
events upon uncaught exception (@juergba)html
reporter (browser) (@pec9399)The new version differs by 12 commits.
843a322
6.2.2
aec8b02
update CHANGELOG for v6.2.2 [ci skip]
7a8b95a
npm audit fixes
cebddf2
Improve reporter documentation for mocha in browser. (#4026)
3f7b987
uncaughtException: report more than one exception per test (#4033)
ee82d38
modify alt text of image from Backers to Sponsors inside Sponsors section in Readme (#4046)
e9c036c
special-case parsing of "require" in unparseNodeArgs(); closes #4035 (#4063)
954cf0b
Fix HTMLCollection iteration to make unhide function work as expected (#4051)
816dc27
uncaughtException: fix double EVENT_RUN_END events (#4025)
9650d3f
add OpenJS Foundation logo to website (#4008)
f04b81d
Adopt the OpenJSF Code of Conduct (#3971)
aca8895
Add link checking to docs build step (#3972)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
In Meteor build it fails to minify, it seems to be ES6 or something like that:
Errors prevented bundling:
While minifying app code:
eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:1547:18: SyntaxError: Unexpected token: operator (>)
at new JS_Parse_Error (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:1547:18)
at js_error (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:1555:11)
at croak (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2094:9)
at token_error (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2102:9)
at unexpected (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2108:9)
at expr_atom (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2635:9)
at maybe_unary (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2797:19)
at expr_ops (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2832:24)
at maybe_conditional (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2837:20)
at maybe_assign (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2861:20)
at maybe_assign (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2869:32)
at expression (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2880:20)
at vardefs (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2514:56)
at const_ (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2535:27)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2273:30)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2141:24)
at block_ (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2434:20)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2406:25)
at function_ (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2412:15)
at expr_atom (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2627:24)
at maybe_unary (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2797:19)
at expr_ops (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2832:24)
at maybe_conditional (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2837:20)
at maybe_assign (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2861:20)
at expression (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2880:20)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2696:25)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2141:24)
at expr_atom (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2621:35)
at maybe_unary (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2797:19)
at expr_ops (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2832:24)
at maybe_conditional (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2837:20)
at maybe_assign (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2861:20)
at expression (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2880:20)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2696:25)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2141:24)
at expr_atom (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2621:35)
at maybe_unary (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2797:19)
at expr_ops (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2832:24)
at maybe_conditional (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2837:20)
at maybe_assign (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2861:20)
at expression (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2880:20)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2696:25)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2141:24)
at expr_atom (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2621:35)
at maybe_unary (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2797:19)
at expr_ops (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2832:24)
at maybe_conditional (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2837:20)
at maybe_assign (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2861:20)
at expression (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2880:20)
at expr_list (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2646:24)
at subscripts (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2780:30)
at expr_atom (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2633:20)
at maybe_unary (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2797:19)
at expr_ops (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2832:24)
at maybe_conditional (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2837:20)
at maybe_assign (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2861:20)
at expression (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2880:20)
at vardefs (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2514:56)
at var_ (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2527:27)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2270:30)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2141:24)
at block_ (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2434:20)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2406:25)
at function_ (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2412:15)
at expr_atom (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2627:24)
at maybe_unary (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2797:19)
at expr_ops (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2832:24)
at maybe_conditional (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2837:20)
at maybe_assign (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2861:20)
at expression (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2880:20)
at expr_atom (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2613:26)
at maybe_unary (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2797:19)
at expr_ops (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2832:24)
at maybe_conditional (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2837:20)
at maybe_assign (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2861:20)
at expression (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2880:20)
at simple_statement (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2319:55)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2200:24)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2141:24)
at eval (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2909:23)
at Object.parse (eval at <anonymous>
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:2920:7)
at addFile
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:72:33)
at
/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:81:17
at Array.forEach (native)
at exports.minify
(/home/ubuntu/.meteor/packages/standard-minifier-js/.1.2.2.ibwnfn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:79:26)
at packages/minifyStdJS_plugin.js:55:16
at Array.forEach (native)
at UglifyJSMinifier.processFilesForBundle (packages/minifyStdJS_plugin.js:50:9)
npm WARN [email protected] No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "install" "utf-8-validate"
npm ERR! node v6.3.1
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the utf-8-validate packag
e,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs utf-8-validate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls utf-8-validate
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\code_angularjs\test\npm-debug.log
Hi there,
Is there any reason why the module defaults to validation.c
(compiled with node-gyp postinstall)
AFAICS the "fallback" contains the same "main" code and no important native API's are used.
Is it purely for efficiency with large files?
Context: looking for replacement for https://github.com/wayfind/is-utf8 for Metalsmith SSG, due to erroneous handling of ASCII chars, see wayfind/is-utf8#6 but cannot consider any lib that requires node-gyp (due to platform-specific issues)
So this request would be to justify node-gyp dependency overhead in the docs and/ or make it an optionalDependency (as require('utf8-validate/fallback')
should also work
System info:
node --version
v16.15.1
My code:
const isValidUTF8 = require('utf-8-validate');
const t1 = 'Государственное образовательное у��реждение высшего профессионального образования «Пензенский государственный университет»';
const buf1 = Buffer.from(t1);
console.log(isValidUTF8(buf1));
// it is true
const t2 = '��';
const buf2 = Buffer.from(t2);
console.log(isValidUTF8(buf2));
// it is true
I wanted to use this library to detect strings of characters that are not in UTF-8 but I have the impression that it does not detect this string as being in another format.
thank you in advance
I think there is an issue with compiling this module for io.js 3.0 on Travis. You may need to add -std=gnu++11
to the CFLAGS.
I could not install the package on my system npm install -g utf-8-validate --save-dev --msvs_version=2012
; do you, guys, know what can I do to solve this problem?
☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io
4.2.1
to 4.2.2
.This version is covered by your current version range and after updating it in your project the build failed.
node-gyp-build is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 3 commits.
7e1f184
4.2.2
cadbc9a
Use env.npm_config_* for electron and upcoming npm (#30)
e046b9f
Upgrade tape devDependency to 5.0.0 (#31)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
utf-8-validate is used by ws and thus widely used. Beginners (and people without compilers) might not want/need high performance to get started. Would it be hard to provide this module with a JavaScript only fallback?
Fresh install on macOS Sierra with Xcode installed:
> [email protected] install
> node-gyp rebuild
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment
target of OS X 10.9
Not sure if OS X 10.11, 10.10, or 10.9 are presenting the same warning.
Just by require('utf-8-validate');
(node) v8::FunctionTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.
==== JS stack trace =========================================
Security context: 0x2dfe49dc9e59 #0#
1: .node [module.js:568] [pc=0x3e52b5d51de4](this=0xa89340c4b61 <an Object with map 0x33c1a1e17b89>#1#,module=0xa89340e5a29 <a Module with map 0x33c1a1e18161>#2#,filename=0xa89340e5921 <String[105]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/build/Release/validation.node)
2: load [module.js:458] [pc=0x3e52b5d396f2](this=0xa89340e5a29 <a Module with map 0x33c1a1e18161>#2#,filename=0xa89340e5921 <String[105]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/build/Release/validation.node)
3: tryModuleLoad(aka tryModuleLoad) [module.js:417] [pc=0x3e52b5d3921d](this=0x2dfe49d04189 ,module=0xa89340e5a29 <a Module with map 0x33c1a1e18161>#2#,filename=0xa89340e5921 <String[105]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/build/Release/validation.node)
4: _load [module.js:409] [pc=0x3e52b5d34e02](this=0xa8934082b19 <JS Function Module %28SharedFunctionInfo 0x245e9f024829%29>#3#,request=0xa89340e4eb9 <String[105]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/build/Release/validation.node>,parent=0xa89340d5fa1 <a Module with map 0x33c1a1e18161>#4#,isMain=0x2dfe49d04299 <false)
5: require [module.js:468] [pc=0x3e52b5d42cd3](this=0xa89340d5fa1 <a Module with map 0x33c1a1e18161>#4#,path=0xa89340e4eb9 <String[105]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/build/Release/validation.node)
6: require(aka require) [internal/module.js:20] [pc=0x3e52b5d42a06](this=0x2dfe49d04189 ,path=0xa89340e4eb9 <String[105]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/build/Release/validation.node)
7: bindings [/home/ubuntu/suitest_releases/20151110160909230/node_modules/bindings/bindings.js:76] [pc=0x3e52b5d4aab6](this=0x2dfe49de5bf9 #5#,opts=0x245e9f058769 <String[10]: validation)
8: /* anonymous _/ [/home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/index.js:4] [pc=0x3e52b5d4889c](this=0xa89340cf731 <an Object with map 0x143cd8207b71>#6#,exports=0xa89340cf731 <an Object with map 0x143cd8207b71>#6#,require=0xa89340d1091 <JS Function require %28SharedFunctionInfo 0x245e9f054319%29>#7#,module=0xa89340cf6a9 <a Module with map 0x33c1a1e18161>#8#,__filename=0xa89340cf569 <String[84]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/index.js>,__dirname=0xa89340d0fc9 <String[75]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate)
9: _compile [module.js:541] [pc=0x3e52b5d421f0](this=0xa89340cf6a9 <a Module with map 0x33c1a1e18161>#8#,content=0xa89340d0a19 <String[133]:)('validation');\n} catch (e) {\n module.exports = require('./fallback');\n}\n>,filename=0xa89340cf569 <String[84]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/index.js>)
10: .js [module.js:550] [pc=0x3e52b5d3aceb](this=0xa89340c4b61 <an Object with map 0x33c1a1e17b89>#1#,module=0xa89340cf6a9 <a Module with map 0x33c1a1e18161>#8#,filename=0xa89340cf569 <String[84]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/index.js)
11: load [module.js:458] [pc=0x3e52b5d396f2](this=0xa89340cf6a9 <a Module with map 0x33c1a1e18161>#8#,filename=0xa89340cf569 <String[84]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/index.js)
12: tryModuleLoad(aka tryModuleLoad) [module.js:417] [pc=0x3e52b5d3921d](this=0x2dfe49d04189 ,module=0xa89340cf6a9 <a Module with map 0x33c1a1e18161>#8#,filename=0xa89340cf569 <String[84]: /home/ubuntu/suitest_releases/20151110160909230/node_modules/utf-8-validate/index.js)
13: load [module.js:409] [pc=0x3e52b5d34e02](this=0xa8934082b19 <JS Function Module %28SharedFunctionInfo 0x245e9f024829%29>#3#,request=0x245e9f053d81 <String[29]: ./node_modules/utf-8-validate>,parent=0xa89340c7721 <a Module with map 0x33c1a1e18161>#9#,isMain=0x2dfe49d04299 <false)
14: require [module.js:468] [pc=0x3e52b5d42cd3](this=0xa89340c7721 <a Module with map 0x33c1a1e18161>#9#,path=0x245e9f053d81 <String[29]: ./node_modules/utf-8-validate)
15: require(aka require) [internal/module.js:20] [pc=0x3e52b5d42a06](this=0x2dfe49d04189 ,path=0x245e9f053d81 <String[29]: ./node_modules/utf-8-validate)
16: / anonymous */ [/home/ubuntu/suitest_releases/20151110160909230/fail.js:4] [pc=0x3e52b5d424bf](this=0xa89340c7819 <an Object with map 0x143cd8207b71>#10#,exports=0xa89340c7819 <an Object with map 0x143cd8207b71>#10#,require=0xa89340c95f9 <JS Function require %28SharedFunctionInfo 0x245e9f054319%29>#11#,module=0xa89340c7721 <a Module with map 0x33c1a1e18161>#9#,__filename=0xa89340c7679 <String[55]: /home/ubuntu/suitest_releases/20151110160909230/fail.js>,__dirname=0xa89340c9521 <String[47]: /home/ubuntu/suitest_releases/20151110160909230)
17: _compile [module.js:541] [pc=0x3e52b5d421f0](this=0xa89340c7721 <a Module with map 0x33c1a1e18161>#9#,content=0xa89340c9051 <String[151]:);\nvar utf8 = require('./node_modules/utf-8-validate');\n// var bu = require('./node_modules/bufferutil');\n>,filename=0xa89340c7679 <String[55]: /home/ubuntu/suitest_releases/20151110160909230/fail.js>)
18: .js [module.js:550] [pc=0x3e52b5d3aceb](this=0xa89340c4b61 <an Object with map 0x33c1a1e17b89>#1#,module=0xa89340c7721 <a Module with map 0x33c1a1e18161>#9#,filename=0xa89340c7679 <String[55]: /home/ubuntu/suitest_releases/20151110160909230/fail.js)
19: load [module.js:458] [pc=0x3e52b5d396f2](this=0xa89340c7721 <a Module with map 0x33c1a1e18161>#9#,filename=0xa89340c7679 <String[55]: /home/ubuntu/suitest_releases/20151110160909230/fail.js)
20: tryModuleLoad(aka tryModuleLoad) [module.js:417] [pc=0x3e52b5d3921d](this=0x2dfe49d04189 ,module=0xa89340c7721 <a Module with map 0x33c1a1e18161>#9#,filename=0xa89340c7679 <String[55]: /home/ubuntu/suitest_releases/20151110160909230/fail.js)
21: _load [module.js:409] [pc=0x3e52b5d34e02](this=0xa8934082b19 <JS Function Module %28SharedFunctionInfo 0x245e9f024829%29>#3#,request=0xa893407d521 <String[55]: /home/ubuntu/suitest_releases/20151110160909230/fail.js>,parent=0x2dfe49d04101 ,isMain=0x2dfe49d04231 <true)
22: runMain [module.js:575] [pc=0x3e52b5d348ca](this=0xa8934082b19 <JS Function Module %28SharedFunctionInfo 0x245e9f024829%29>#3#)
23: startup(aka startup) [node.js:160] [pc=0x3e52b5c408c9](this=0x2dfe49d04189 <undefined)
==== C stack trace ===============================
1: v8::Template::Set(v8::Localv8::Name, v8::Localv8::Data, v8::PropertyAttribute)
2: init(v8::Localv8::Object)
3: node::DLOpen(v8::FunctionCallbackInfov8::Value const&)
4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfov8::Value const&))
5: 0x9a9e8b
6: 0x9aa431
7: 0x3e52b5c0961b
This is actually from a downstream project (socket.io) build failing with node v4.0.0 (stable), so not sure if this has already been addressed and not yet included in the downstream:
> [email protected] install /app/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild
make: Entering directory `/app/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../src/validation.cc:15:0:
../node_modules/nan/nan.h:261:25: error: redefinition of 'template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)'
../node_modules/nan/nan.h:256:25: error: 'template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)' previously declared here
../node_modules/nan/nan.h:661:13: error: 'node::smalloc' has not been declared
../node_modules/nan/nan.h:661:35: error: expected ',' or '...' before 'callback'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)':
../node_modules/nan/nan.h:665:50: error: 'callback' was not declared in this scope
../node_modules/nan/nan.h:665:60: error: 'hint' was not declared in this scope
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)':
../node_modules/nan/nan.h:672:67: error: call of overloaded 'New(v8::Isolate*, const char*&, uint32_t&)' is ambiguous
../node_modules/nan/nan.h:672:67: note: candidates are:
In file included from ../src/validation.cc:10:0:
/root/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
/root/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from 'uint32_t {aka unsigned int}' to 'node::encoding'
/root/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
/root/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from 'const char*' to 'char*'
In file included from ../src/validation.cc:15:0:
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(uint32_t)':
../node_modules/nan/nan.h:676:61: error: could not convert 'node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))' from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanBufferUse(char*, uint32_t)':
../node_modules/nan/nan.h:683:12: error: 'Use' is not a member of 'node::Buffer'
make: *** [Release/obj.target/validation/src/validation.o] Error 1
make: Leaving directory `/app/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.0.9-boot2docker
gyp ERR! command "/nodejs/bin/node" "/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /app/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
I've also opened an issue on socket.io (socketio/socket.io#2228) for when the build compilation is fixed here.
Hello,
Please add a pre-compiled version for Node 10 ABI v64 support.
Thank you!
New versions of Node.js have intorduced a new API for native packages: N -API.
Currently, there is a burden of supporting different versions of utf-8-validate
for every Node ABI x platform x 32/64 bitness.
On of the huge disadvantages of the current native packages, is the requirement to either setup a compiler environment on the target machine, or have an access to Internet for downloading the prebuilt package from GitHub.
Some developers, however, work in standalone environments due to corporate policies, making upgrading utf-8-validate
a non-trivial process. Such environments may make use of a proxying private repository tools, such as Artifactory or Nexus. Those tools allow caching public repositories from npmjs.org
to be used locally, but do not allow access to sites like GitHub.
With N-API, there should be possible to have only one version for all the platforms. Which, in turn, makes it possible to include the prebuilt binary with the package itself and publish it on npmjs.org
. The proxying private repository tools would then cache the new version of the package, and allow that work in standalone environments, use utf-8-validate
more easily.
The latest version of utf-8-validate supports Node 6 via this change .
Please bump the npm version so we can get these changes. @3rd-Eden
Related to: #27
Got this trying to install on Ubuntu 14.04, Node.js 5.5. This looks similar to the errors others have reported and/or created PRs for. Is this package still being actively maintained?
> [email protected] install node_modules/utf-8-validate
> node-gyp rebuild
make: Entering directory `node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../src/validation.cc:15:0:
../../nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^
../../nan/nan.h:256:25: error: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../../nan/nan.h:672:67: note: candidates are:
In file included from ../src/validation.cc:10:0:
~/.node-gyp/5.5.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
~/.node-gyp/5.5.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
~/.node-gyp/5.5.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
~/.node-gyp/5.5.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char*’ to ‘char*’
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
make: *** [Release/obj.target/validation/src/validation.o] Error 1
make: Leaving directory `node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-76-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd node_modules/utf-8-validate
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
For those who can't install...
My issue was
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Ended up with pure javascript solution:
function isValidUTF8(buff){
return Buffer.compare(new Buffer(buff.toString(),'utf8') , buff) === 0;
}
which converts the buffer back and forth and check it stays the same.
The 'utf8' encoding can be omitted.
Then we have:
> isValidUTF8(new Buffer('this is valid, 指事字 eè we hope','utf8'))
true
> isValidUTF8(new Buffer([128]))
false
> isValidUTF8(new Buffer('\ufffd'))
true
where the '\ufffd' character is correctly considered as valid utf8.
Hi,
I couldn't find any info on whether this is compatible with the Memory Cage of Electron 21+. Is it?
I just don't want to risk that it works on my machine and users of my application are doing something differently and it crashes for them.
Hello team,
As accessible here: https://github.com/iobroker-community-adapters/ioBroker.ring/pull/164/checks?check_run_id=3806140801
Our Tests are currently failing installing this lib under MacOS with npm ci
Best regards
Thiemo
[email protected] install /home/ubuntu/project/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
node-gyp rebuild
make: Entering directory '/home/ubuntu/project/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../node_modules/nan/nan_new.h:190:0,
from ../node_modules/nan/nan.h:74,
from ../src/validation.cc:15:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::Signature::return_t NanIntern::Factoryv8::Signature::New(NanIntern::Factoryv8::Signature::FTH, int, NanIntern::Factoryv8::Signature::FTH_)’:
../node_modules/nan/nan_implementation_12_inl.h:181:76: error: no matching function for call to ‘v8::Signature::New(v8::Isolate_, NanIntern::Factoryv8::Signature::FTH&, int&, NanIntern::Factoryv8::Signature::FTH_&)’
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
^
../node_modules/nan/nan_implementation_12_inl.h:181:76: note: candidate is:
In file included from ../src/validation.cc:7:0:
/home/ubuntu/.node-gyp/4.0.0/include/node/v8.h:4675:27: note: static v8::Localv8::Signature v8::Signature::New(v8::Isolate_, v8::Localv8::FunctionTemplate)
static Local New(
^
/home/ubuntu/.node-gyp/4.0.0/include/node/v8.h:4675:27: note: candidate expects 2 arguments, 4 provided
In file included from ../src/validation.cc:15:0:
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:165:25: error: redefinition of ‘template v8::Local NanEnsureLocal(v8::Local)’
NAN_INLINE v8::Local NanEnsureLocal(v8::Local val) {
^
../node_modules/nan/nan.h:160:25: note: ‘template v8::Local NanEnsureLocal(v8::Handle)’ previously declared here
NAN_INLINE v8::Local NanEnsureLocal(v8::Handle val) {
^
../node_modules/nan/nan.h:557:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h:557:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(char, size_t, int)’:
../node_modules/nan/nan.h:561:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h:561:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char, uint32_t)’:
../node_modules/nan/nan.h:568:67: error: call of overloaded ‘New(v8::Isolate, const char&, uint32_t&)’ is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../node_modules/nan/nan.h:568:67: note: candidates are:
In file included from ../src/validation.cc:10:0:
/home/ubuntu/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
^
/home/ubuntu/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
/home/ubuntu/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, char_, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/home/ubuntu/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char_’ to ‘char_’
In file included from ../src/validation.cc:15:0:
../node_modules/nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’:
../node_modules/nan/nan.h:572:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../node_modules/nan/nan.h: In function ‘v8::Localv8::Object NanBufferUse(char*, uint32_t)’:
../node_modules/nan/nan.h:579:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
validation.target.mk:92: recipe for target 'Release/obj.target/validation/src/validation.o' failed
Hi,
I am trying to use this library and some one point out that part of this software is written by Dr Markus Kuhn. But he is not mention in the LICENSE.md. Can any one add him there as second contributor to software. I have to put two license notices in my software and it would be great if I have to just add one for this library.
Source: https://github.com/websockets/utf-8-validate/blob/master/src/validation.c
Author: Markus Kuhn http://www.cl.cam.ac.uk/~mgk25/
Thanks
$ npm install utf-8-validate
-
> [email protected] install /home/borisov/test/npm1/node_modules/utf-8-validate
> node-gyp rebuild
Usage: gyp_main.py [options ...] [build_file ...]
gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:354:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 4.1.0-2-amd64
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/borisov/test/npm1/node_modules/utf-8-validate
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
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 most likely a problem with the utf-8-validate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls utf-8-validate
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.1.0-2-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "utf-8-validate"
npm ERR! cwd /home/borisov/test/npm1
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/borisov/test/npm1/npm-debug.log
npm ERR! not ok code 0
So node v4.0.0-rc.5 was released like 12 hours ago. Why isn't this fixed yet? :P
Just kidding.
So I noticed this when trying to use the ws module. The fallback files don't get a chance to run because node just seg faults. I assume there is some NAN magic that needs to be upgraded or something? rvagg mentions it in the third paragraph of the first post in nodejs/node#2522 . It would be awesome to get this working for node 4 soon :)
In the meantime, it seems like the fallback files work if I change the source to not even try to require the native versions. So doing that for now.
Hey here,
6.0.1 version is doing a segfault with node:18.12.1-alpine3.16
running the example from the README.
Best.
Yarn tells me:
utf-8-validate@npm:6.0.4 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\stephan\AppData\Local\Temp\xfs-51368c88\build.log)
And the content of the log file (some directory names redacted):
# This file contains the result of Yarn building a package (utf-8-validate@npm:6.0.4)
# Script name: install
node:internal/child_process:421
throw new ErrnoException(err, 'spawn');
^
Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at Object.spawn (node:child_process:761:9)
at build (C:\Users\stephan\github\redacted\Redacted\node_modules\node-gyp-build\bin.js:29:8)
at preinstall (C:\Users\stephan\github\redacted\Redacted\node_modules\node-gyp-build\bin.js:38:32)
at C:\Users\stephan\github\redacted\Redacted\node_modules\node-gyp-build\bin.js:11:7
at ChildProcess.exithandler (node:child_process:430:5)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:518:28) {
errno: -4071,
code: 'EINVAL',
syscall: 'spawn'
}
Node.js v20.12.2
To reproduce:
nvm install 20.12.2
nvm use 20.12.2
yarn add [email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.