After "add accounts-password" and run "meteor" many ERRORS


After “add accounts-password” and run “meteor”:

c:\1\micc>meteor list
accounts-password 1.3.3 Password support for accounts
accounts-ui 1.1.9 Simple templates to add login…
blaze-html-templates 1.0.5 Compile HTML templates into r…
ecmascript 0.6.1 Compiler plugin that supports…
es5-shim 4.6.15 Shims and polyfills to impro…
insecure 1.0.7 (For prototyping only) Allow …
iron:router 1.0.13 Routing specifically designe…
jquery 1.11.10 Manipulate the DOM using CS…
meteor-base 1.0.4 Packages that every Meteor ap…
mizzao:bootstrap-3 3.3.1_1 HTML, CSS, and JS framework…
mobile-experience 1.0.4 Packages for a great mobile u…
mongo 1.1.14 Adaptor for using MongoDB an…
mrt:accounts-ui-bootstrap-dropdown 0.8.3 Bootstrap styled version of l…
reactive-var 1.0.11 Reactive variable
sacha:spin 2.3.1 Simple spinner package for Me…
session 1.1.7 Session variable
shell-server 0.2.1 Server-side component of the …
standard-minifier-css 1.3.2 Standard css minifier used wi…
standard-minifier-js 1.2.1 Standard javascript minifiers…
tracker 1.1.1 Dependency tracker to allow r…
underscore 1.0.10 Collection of small helpers:…

After “meteor npm install --save bcrypt”

c:\1\micc>meteor npm install --save bcrypt

bcrypt@1.0.1 install c:\1\micc\node_modules\bcrypt
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download:
node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.1 and node@4.6.2 (
node-v46 ABI) (falling back to source compile with node-gyp)
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, до
бавьте параметр “/m”.
c:\1\micc\node_modules\nan\nan.h(23): fatal error C1083: Не удается открыть фай
л включение: node_version.h: No such file or directory (компилируется исходный
файл …\src\ [c:\1\micc\node_modules\bcrypt\build\bcrypt_lib.vcx
…\src\ warning C4267: =: преобразование из “size_t” в “unsigned
char”; возможна потеря данных [c:\1\micc\node_modules\bcrypt\build\bcrypt_lib.
c1xx : fatal error C1083: Не удается открыть файл источник: C:\Users\Einoy\AppD
lib\node_modules\node-gyp\src\ No such file or directory
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Костя\AppData\Local.meteor
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_proces
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “C:\Users\Костя\AppData\Local\.meteor\packages\meteor-to
ol\1.4.2_3\\dev_bundle\bin\node.exe” “C:\Users\Костя
dev_bundle\lib\node_modules\node-gyp\bin\node-gyp.js” “build” “–fallback-t
o-build” “–module=c:\1\micc\node_modules\bcrypt\lib\binding\bcrypt_lib.n
ode” “–module_name=bcrypt_lib” “–module_path=c:\1\micc\node_modules\bcrypt
gyp ERR! cwd c:\1\micc\node_modules\bcrypt
gyp ERR! node -v v4.6.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘C:\Users\Костя\AppData\Local.
.x86_32\dev_bundle\lib\node_modules\node-gyp\bin\node-gyp.js build --fallback-to
-build --module=c:\1\micc\node_modules\bcrypt\lib\binding\bcrypt_lib.node --modu
le_name=bcrypt_lib --module_path=c:\1\micc\node_modules\bcrypt\lib\binding’ (1)
node-pre-gyp ERR! stack at ChildProcess. (c:\1\micc\node_modules
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:854:16)
node-pre-gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/chi
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command “C:\Users\Костя\AppData\Local\.meteor\packages\
meteor-tool\1.4.2_3\\dev_bundle\bin\node.exe” “c:\1\m
icc\node_modules\bcrypt\node_modules\node-pre-gyp\bin\node-pre-gyp” “insta
ll” “–fallback-to-build”
node-pre-gyp ERR! cwd c:\1\micc\node_modules\bcrypt
node-pre-gyp ERR! node -v v4.6.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok
Failed to execute 'C:\Users\Костя\AppData\Local.meteor\packages\meteor-tool\1.4
.2_3\\dev_bundle\bin\node.exe C:\Users\Костя\AppData\Local.
ules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=c:\1\micc\node

modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_pat
h=c:\1\micc\node_modules\bcrypt\lib\binding’ (1)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv “C:\Users\Костя\AppData\Local\.meteor\packages\meteor-tool
\1.4.2_3\\dev_bundle\bin\node.exe” “C:\Users\Костя\Ap
_bundle\lib\node_modules\npm\bin\npm-cli.js” “install” “–save” “bcrypt”
npm ERR! node v4.6.2
npm ERR! npm v3.10.9

npm ERR! bcrypt@1.0.1 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@1.0.1 install script ‘node-pre-gyp install --fallb
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 bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! c:\1\micc\npm-debug.log


Help me, please. A lot of ways tried but nor working.

So, what is the relation between the picture and the text list?
According to the picture your app is working. Does it work?

The original “error” that you’re asking about is not actually an error – it is a notice (or “info”, if you will).

Essentially, the notice is telling you that you do not have a native (that is to say, compiled, executable machine-code) implementation of bcrypt. Instead, you are using a JavaScript implementation which is slower, but realistically is fine for many smaller apps. Due to the complexities (and sheer size) of packaging a compiler toolchain, this is left up to the user to provide.

The instructions there are intended to help you install a compiled version however unfortunately, your Windows computer does not have a suitable compiler-toolchain (i.e. compiler, linker, etc.). Additionally, there are not any pre-compiled versions of that particular binary available for your platform (as indicated by the message: Pre-built binaries not found for bcrypt@1.0.1 and node@4.6.2 (node-v46 ABI) (falling back to source compile with node-gyp).

You should set your machine up to be capable of compiling code by following the instructions provided by node-gyp which outlines the dependencies which are necessary. Follow the instructions carefully as things are complicated for Windows users (but much better than they used to be!)

I can’t deploy to my ubuntu 14.04 because have the same error:

node-pre-gyp ERR! Tried to download: 
node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.1 and node@4.4.7 (node-v46 ABI) (falling back to source compile with node-gyp) 

My app worked perfectly fine, but after updating meteor and adding some new code I’ve got this error (locally everything works fine).

What I can do? I tried to rm -rf node_modules locally and then rebuild it with meteor npm i, got the same error, I’ve tried to install node-gyp on my server. I’ve tried to install everything how it in node-gyp official manual:

You will also need to install:

On Unix:

python (v2.7 recommended, v3.x.x is not supported)
A proper C/C++ compiler toolchain, like GCC

What I have to try next? :japanese_ogre:

Got the same error when deploying on CentOS 6.5 with the bcrypt module.

After adding bcrypt to my project via meteor yarn add bcrypt, it silences the following warning when development (MacOS 10.12/Node 7.2.1):

W20161222-11:56:33.240(8)? (STDERR) Note: you are using a pure-JavaScript implementation of bcrypt.
W20161222-11:56:33.311(8)? (STDERR) While this implementation will work correctly, it is known to be
W20161222-11:56:33.311(8)? (STDERR) approximately three times slower than the native implementation.
W20161222-11:56:33.312(8)? (STDERR) In order to use the native implementation instead, run
W20161222-11:56:33.312(8)? (STDERR) 
W20161222-11:56:33.312(8)? (STDERR)   meteor npm install --save bcrypt
W20161222-11:56:33.313(8)? (STDERR) 
W20161222-11:56:33.313(8)? (STDERR) in the root directory of your application.

However, adding bcrypt to my project raises new error messages when deployment (CentOS 6.5/Node 4.6.2/Node-gyp 3.4.0):

node-pre-gyp ERR! Tried to download: 
node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.1 and node@4.6.2 (node-v46 ABI) (falling back to source compile with node-gyp) 
gyp ERR! clean error 
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
gyp ERR! stack     at Error (native)
gyp ERR! System Linux 2.6.32-573.7.1.el6.x86_64
gyp ERR! command "/opt/node/bin/node" "/service/sm_app/bundle/programs/server/node_modules/node-gyp/bin/node-gyp.js" "clean"
gyp ERR! cwd /service/sm_app/bundle/programs/server/npm/node_modules/bcrypt
gyp ERR! node -v v4.6.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 

I use different versions of Node.js on development and deployment machines. No idea how to resolve the warning on both of development and deployment.