1/12/2024 0 Comments Node crypt3 recompileNpm ERR! There is likely additional logging output above. Npm ERR! Tell the author that this fails on your system: Npm ERR! This is most likely a problem with the crypt3 package, Npm ERR! Failed at the install script 'node-gyp rebuild'. Npm ERR! argv "/home/will/.nvm/versions/node/v4.0.0/bin/node" "/home/will/.nvm/versions/node/v4.0.0/bin/npm" "install" "crypt3" Gyp ERR! cwd /home/will/test/node_modules/crypt3 Gyp ERR! command "/home/will/.nvm/versions/node/v4.0.0/bin/node" "/home/will/.nvm/versions/node/v4.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" Gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) Gyp ERR! stack at ChildProcess.emit (events.js:172:7) Gyp ERR! stack at emitTwo (events.js:87:13) Gyp ERR! stack at ChildProcess.onExit (/home/will/.nvm/versions/node/v4.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) Gyp ERR! stack Error: `make` failed with exit code: 2 Make: Leaving directory `/home/will/test/node_modules/crypt3/build' Return NanThrowError(node::ErrnoException(errno, "crypt")) :29:59: warning: ‘v8::Local node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/will/.node-gyp/4.0.0/include/node/node.h:99): Use UVException(isolate. : In function ‘void Method(const v8::FunctionCallbackInfo&)’: Return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size) node_modules/nan/nan.h:779:12: error: ‘Use’ is not a member of ‘node::Buffer’ Just run npm rebuild inside your app directory after it is copied over to the new VM and any binary add-ons will be recompiled to match the current CPU architecture and node version. node_modules/nan/nan.h: In function ‘v8::Local NanBufferUse(char*, uint32_t)’: 1 Answer Sorted by: 19 This is precisely what the npm rebuild command does. Return node::Buffer::New(v8::Isolate::GetCurrent(), size) node_modules/nan/nan.h:772:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal’ to ‘v8::Local’ node_modules/nan/nan.h: In function ‘v8::Local NanNewBufferHandle(uint32_t)’: home/will/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char*’ to ‘char*’ NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, NAN_INLINE v8::Local NanEnsureHandleOrPersistent(const v8::Local &val) ’ to ‘node::encoding’ node_modules/nan/nan.h:324:27: error: redefinition of ‘template v8::Local Nan::imp::NanEnsureHandleOrPersistent(const v8::Local&)’ Make: Entering directory `/home/will/test/node_modules/crypt3/build'ĬXX(target) Release/obj.target/crypt3/crypt3.o > install /home/will/test/node_modules/crypt3 Reporting this from Ubuntu 14.04, though it's also occurring on different distros. In the case of crypt3 (one of sinopia dependencies), check the package.json. in their package.json, they have a dependency on the crypt3 package. Which converts their package.yaml into package.json. If you check their pre-publish script, it contains prepublish: js-yaml package.yaml > package.json In the case of sinopia, they do not have a standard package.json file, they have a package.yaml file. this will also allow you to access the module from the command-line, as the bin is symlinked into a path folder (usually usr/local/bin). The -g directive tells npm to install the package in the global shared node_modules folder (usually where node is). Run the pre-install, install and post-install scripts for itself and each of its dependencies. (or use an already existing local copy of it. Download an npm package you specify with the argument, or inside your package.json file, along with its dependencies (from the npm repository host you define) inside a node_modules folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |