Giter Site home page Giter Site logo

Trying to install yencode: "npm WARN saveError ENOENT: no such file or directory, open '/home/sander/package.json'" about node-yencode HOT 6 CLOSED

animetosho avatar animetosho commented on July 21, 2024
Trying to install yencode: "npm WARN saveError ENOENT: no such file or directory, open '/home/sander/package.json'"

from node-yencode.

Comments (6)

sanderjo avatar sanderjo commented on July 21, 2024

No success either as normal user:

$ npm install  yencode

> [email protected] install /home/sander/node_modules/yencode
> node-gyp rebuild

make: Entering directory '/home/sander/node_modules/yencode/build'
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/crc32c_sse4.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_64_64_cl_i386_mmx.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_64_64_gcc_amd64_asm.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_64_64_gcc_i386_mmx.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_64_64_intrinsic_i386_mmx.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_128_64_gcc_amd64_sse2.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/examples/interface.o
  AR(target) Release/obj.target/crcutil.a
  COPY Release/crcutil.a
  CXX(target) Release/obj.target/yencode_sse2/src/encoder_sse2.o
  CXX(target) Release/obj.target/yencode_sse2/src/decoder_sse2.o
  AR(target) Release/obj.target/yencode_sse2.a
  COPY Release/yencode_sse2.a
  CXX(target) Release/obj.target/yencode_ssse3/src/encoder_ssse3.o
  CXX(target) Release/obj.target/yencode_ssse3/src/decoder_ssse3.o
  AR(target) Release/obj.target/yencode_ssse3.a
  COPY Release/yencode_ssse3.a
  CC(target) Release/obj.target/yencode_clmul/src/crc_folding.o
  AR(target) Release/obj.target/yencode_clmul.a
  COPY Release/yencode_clmul.a
  CXX(target) Release/obj.target/yencode_avx/src/encoder_avx.o
  CXX(target) Release/obj.target/yencode_avx/src/decoder_avx.o
  AR(target) Release/obj.target/yencode_avx.a
  COPY Release/yencode_avx.a
  CXX(target) Release/obj.target/yencode_avx2/src/decoder_avx2.o
  CXX(target) Release/obj.target/yencode_avx2/src/encoder_avx2.o
  AR(target) Release/obj.target/yencode_avx2.a
  COPY Release/yencode_avx2.a
  CXX(target) Release/obj.target/yencode_neon/src/encoder_neon.o
  CXX(target) Release/obj.target/yencode_neon/src/decoder_neon.o
  AR(target) Release/obj.target/yencode_neon.a
  COPY Release/yencode_neon.a
  CXX(target) Release/obj.target/yencode_armcrc/src/crc_arm.o
  AR(target) Release/obj.target/yencode_armcrc.a
  COPY Release/yencode_armcrc.a
  CXX(target) Release/obj.target/yencode/src/yencode.o
In file included from ../src/yencode.cc:2:
/home/sander/.cache/node-gyp/10.19.0/include/node/node.h:593:51: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>)’ to ‘node::addon_context_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>, void*)’} [-Wcast-function-type]
  593 |       (node::addon_context_register_func) (regfunc),                  \
      |                                                   ^
/home/sander/.cache/node-gyp/10.19.0/include/node/node.h:611:3: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE_X’
  611 |   NODE_MODULE_CONTEXT_AWARE_X(modname, regfunc, NULL, 0)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sander/.cache/node-gyp/10.19.0/include/node/node.h:634:3: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE’
  634 |   NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME,                     \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/yencode.cc:428:1: note: in expansion of macro ‘NODE_MODULE_INIT’
  428 | NODE_MODULE_INIT(/* exports, module, context */)
      | ^~~~~~~~~~~~~~~~
  CXX(target) Release/obj.target/yencode/src/platform.o
  CXX(target) Release/obj.target/yencode/src/encoder.o
  CXX(target) Release/obj.target/yencode/src/decoder.o
  CXX(target) Release/obj.target/yencode/src/crc.o
  SOLINK_MODULE(target) Release/obj.target/yencode.node
  COPY Release/yencode.node
make: Leaving directory '/home/sander/node_modules/yencode/build'
npm WARN saveError ENOENT: no such file or directory, open '/home/sander/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/sander/package.json'
npm WARN sander No description
npm WARN sander No repository field.
npm WARN sander No README data
npm WARN sander No license field.

+ [email protected]
updated 1 package and audited 1 package in 25.088s
found 0 vulnerabilities

from node-yencode.

sanderjo avatar sanderjo commented on July 21, 2024

I also tried:

$ sudo npm install  @animetosho/yencode
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@animetosho%2fyencode - Not found
npm ERR! 404
npm ERR! 404  '@animetosho/yencode@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-07-22T13_39_28_860Z-debug.log

from node-yencode.

sanderjo avatar sanderjo commented on July 21, 2024

FWIW: ... there seems stuff to be installed ...

$ locate yencode.node
/home/sander/node_modules/yencode/build/Release/.deps/Release/obj.target/yencode.node.d
/home/sander/node_modules/yencode/build/Release/.deps/Release/yencode.node.d
/home/sander/node_modules/yencode/build/Release/obj.target/yencode.node
/home/sander/node_modules/yencode/build/Release/yencode.node
/usr/local/lib/node_modules/@animetosho/parpar/node_modules/yencode/build/Release/.deps/Release/obj.target/yencode.node.d
/usr/local/lib/node_modules/@animetosho/parpar/node_modules/yencode/build/Release/.deps/Release/yencode.node.d
/usr/local/lib/node_modules/@animetosho/parpar/node_modules/yencode/build/Release/obj.target/yencode.node
/usr/local/lib/node_modules/@animetosho/parpar/node_modules/yencode/build/Release/yencode.node
/usr/local/lib/node_modules/yencode/build/Release/.deps/Release/obj.target/yencode.node.d
/usr/local/lib/node_modules/yencode/build/Release/.deps/Release/yencode.node.d
/usr/local/lib/node_modules/yencode/build/Release/obj.target/yencode.node
/usr/local/lib/node_modules/yencode/build/Release/yencode.node


I don't know if that should be runnable, but it's not:

sander@brixit:~$ /usr/local/lib/node_modules/yencode/build/Release/yencode.node
Segmentation fault (core dumped)
sander@brixit:~$ /home/sander/node_modules/yencode/build/Release/yencode.node
Segmentation fault (core dumped)
sander@brixit:~$ /usr/local/lib/node_modules/@animetosho/parpar/node_modules/yencode/build/Release/yencode.node
Segmentation fault (core dumped)
sander@brixit:~$
$ file /usr/local/lib/node_modules/yencode/build/Release/yencode.node
/usr/local/lib/node_modules/yencode/build/Release/yencode.node: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=1560219efcd5f295cb8485e0eeb2735c6336c9df, not stripped

from node-yencode.

sanderjo avatar sanderjo commented on July 21, 2024

To be sure it's not just me, I started a fresh Ubuntu 20.04 guest, and

apt-get update
apt-get install npm

and then same problems (see below).

So ... fresh, clean Ubuntu ... and problems ... :-(

# npm install yencode

> [email protected] install /node_modules/yencode
> node-gyp rebuild

make: Entering directory '/node_modules/yencode/build'
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/crc32c_sse4.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_64_64_cl_i386_mmx.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_64_64_gcc_amd64_asm.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_64_64_gcc_i386_mmx.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_64_64_intrinsic_i386_mmx.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/code/multiword_128_64_gcc_amd64_sse2.o
  CXX(target) Release/obj.target/crcutil/crcutil-1.0/examples/interface.o
  AR(target) Release/obj.target/crcutil.a
  COPY Release/crcutil.a
  CXX(target) Release/obj.target/yencode_sse2/src/encoder_sse2.o
  CXX(target) Release/obj.target/yencode_sse2/src/decoder_sse2.o
  AR(target) Release/obj.target/yencode_sse2.a
  COPY Release/yencode_sse2.a
  CXX(target) Release/obj.target/yencode_ssse3/src/encoder_ssse3.o
  CXX(target) Release/obj.target/yencode_ssse3/src/decoder_ssse3.o
  AR(target) Release/obj.target/yencode_ssse3.a
  COPY Release/yencode_ssse3.a
  CC(target) Release/obj.target/yencode_clmul/src/crc_folding.o
  AR(target) Release/obj.target/yencode_clmul.a
  COPY Release/yencode_clmul.a
  CXX(target) Release/obj.target/yencode_avx/src/encoder_avx.o
  CXX(target) Release/obj.target/yencode_avx/src/decoder_avx.o
  AR(target) Release/obj.target/yencode_avx.a
  COPY Release/yencode_avx.a
  CXX(target) Release/obj.target/yencode_avx2/src/decoder_avx2.o
  CXX(target) Release/obj.target/yencode_avx2/src/encoder_avx2.o
  AR(target) Release/obj.target/yencode_avx2.a
  COPY Release/yencode_avx2.a
  CXX(target) Release/obj.target/yencode_neon/src/encoder_neon.o
  CXX(target) Release/obj.target/yencode_neon/src/decoder_neon.o
  AR(target) Release/obj.target/yencode_neon.a
  COPY Release/yencode_neon.a
  CXX(target) Release/obj.target/yencode_armcrc/src/crc_arm.o
  AR(target) Release/obj.target/yencode_armcrc.a
  COPY Release/yencode_armcrc.a
  CXX(target) Release/obj.target/yencode/src/yencode.o
In file included from ../src/yencode.cc:2:
/usr/include/nodejs/src/node.h:593:51: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>)' to 'node::addon_context_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>, void*)'} [-Wcast-function-type]
  593 |       (node::addon_context_register_func) (regfunc),                  \
      |                                                   ^
/usr/include/nodejs/src/node.h:611:3: note: in expansion of macro 'NODE_MODULE_CONTEXT_AWARE_X'
  611 |   NODE_MODULE_CONTEXT_AWARE_X(modname, regfunc, NULL, 0)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:634:3: note: in expansion of macro 'NODE_MODULE_CONTEXT_AWARE'
  634 |   NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME,                     \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/yencode.cc:428:1: note: in expansion of macro 'NODE_MODULE_INIT'
  428 | NODE_MODULE_INIT(/* exports, module, context */)
      | ^~~~~~~~~~~~~~~~
  CXX(target) Release/obj.target/yencode/src/platform.o
  CXX(target) Release/obj.target/yencode/src/encoder.o
  CXX(target) Release/obj.target/yencode/src/decoder.o
  CXX(target) Release/obj.target/yencode/src/crc.o
  SOLINK_MODULE(target) Release/obj.target/yencode.node
  COPY Release/yencode.node
make: Leaving directory '/node_modules/yencode/build'
npm WARN saveError ENOENT: no such file or directory, open '/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.

+ [email protected]
added 1 package from 1 contributor and audited 1 package in 27.533s
found 0 vulnerabilities

and

root@654dc52a628c:/# yencode
bash: yencode: command not found
root@654dc52a628c:/#

from node-yencode.

animetosho avatar animetosho commented on July 21, 2024

Thanks for all the detailed information.

This module doesn't provide any executable, it's just an API, so there's nothing 'runnable'.
If you just wanted Nyuu, you shouldn't need to install this manually, if you're using NPM - it'll automatically pull the dependency across. If you're trying to install Nyuu more manually, yencode just needs to be findable by Nyuu (either installed globally, or installed into the node_modules folder in the Nyuu root directory).

from node-yencode.

sanderjo avatar sanderjo commented on July 21, 2024

Yes, indeed I'm trying to install nyuu. As the problem occurs there, I have made an issue animetosho/Nyuu#77

from node-yencode.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.