Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build $auth service on Windows 10 #34

Open
MileanCo opened this issue Apr 19, 2017 · 2 comments
Open

Failed to build $auth service on Windows 10 #34

MileanCo opened this issue Apr 19, 2017 · 2 comments

Comments

@MileanCo
Copy link

Failing to install this on windows 10 with angular 1.

2017-04-19T19_21_08_399Z-debug.txt

While loading package [email protected]:
error: Command failed:
C:\Users\jstenkvi\AppData\Local.meteor\packages\meteor-tool\1.4.4_1\mt-os.windows.x86_32\dev_bundle\bin\npm.cmd
rebuild --update-binary
node-pre-gyp ERR! Tried to download(404):
https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v46-win32-ia32.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v46
ABI) (falling back to source compile with node-gyp)
Traceback (most recent call last):
File
"C:\Users\jstenkvi\AppData\Local.meteor\packages\meteor-tool\1.4.4_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\gyp\gyp_main.py",
line 16, in
sys.exit(gyp.script_main())
File
"C:\Users\jstenkvi\AppData\Local.meteor\packages\meteor-tool\1.4.4_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\gyp\pylib\gyp_init_.py",
line 545, in script_main
return main(sys.argv[1:])
File
"C:\Users\jstenkvi\AppData\Local.meteor\packages\meteor-tool\1.4.4_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\gyp\pylib\gyp_init_.py",
line 538, in main
return gyp_main(args)
File
"C:\Users\jstenkvi\AppData\Local.meteor\packages\meteor-tool\1.4.4_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\gyp\pylib\gyp_init_.py",
line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File
"C:\Users\jstenkvi\AppData\Local.meteor\packages\meteor-tool\1.4.4_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py",
line 2021, in GenerateOutput
sln_projects, project_objects, flat=msvs_version.FlatSolution())
File
"C:\Users\jstenkvi\AppData\Local.meteor\packages\meteor-tool\1.4.4_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py",
line 1780, in _GatherSolutionFolders
return _DictsToFolders('', root, flat)
....
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install
--fallback-to-build'.
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 fsevents 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 fsevents
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls fsevents
npm ERR! There is likely additional logging output above.

Full log is attached.

@crstn210
Copy link

i have the same problem

@MileanCo
Copy link
Author

I have found that this solution is deprecated, and probably not worth fixing or using.

Better to just call Meteor.user methods straight away, wrappers like this $auth service are unnecessary.
Meteor Users and Accounts

With ES6, you can just do something like:

import { Meteor } from 'meteor/meteor';
...
$scope.ctrl.login = function() {
   Meteor.loginWithFacebook({
     requestPermissions: ['user_friends', 'public_profile', 'email']
   }, (err) => {
     if (err) {
       // handle error
     } else {
       // successful login!
     }
   }); 
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants