npm install --production和ncrypt 6.2.0的bcrypt问题

时间:2018-08-03 16:54:23

标签: node.js npm npm-install

我正在尝试在aws上的debian ec2机器上执行“ npm install -production”。该服务器当前正在运行节点版本10.8.0和nom版本6.2.0。我不确定这是否是版本问题/冲突?似乎只发生在bcrypt包中。似乎正在尝试编译bcrypt代码。造成此问题的原因是什么?如何解决?

> bcrypt@3.0.0 install /home/admin/ProjectDir/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.0/bcrypt_lib-v3.0.0-node-v64-linux-x64-glibc.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.0 and node@10.8.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
make: Entering directory '/home/admin/ProjectDir/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
../src/bcrypt_node.cc: In function ‘char {anonymous}::ToCharVersion(v8::Local<v8::String>)’:
../src/bcrypt_node.cc:66:30: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   String::Utf8Value value(str);
                              ^
In file included from /root/.node-gyp/10.8.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/10.8.0/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/bcrypt_node.cc:1:
/root/.node-gyp/10.8.0/include/node/v8.h:2852:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/root/.node-gyp/10.8.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
  COPY Release/bcrypt_lib.node
  COPY /home/admin/ProjectDir/node_modules/bcrypt/lib/binding/bcrypt_lib.node
  TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/admin/ProjectDir/node_modules/bcrypt/build'

> sharp@0.20.5 install /home/admin/ProjectDir/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.6.1/libvips-8.6.1-linux-x64.tar.gz

added 529 packages from 556 contributors and audited 1489 packages in 15.404s
found 7 vulnerabilities (2 low, 5 moderate)
  run `npm audit fix` to fix them, or `npm audit` for details

0 个答案:

没有答案