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

Permissions Error When Upgrading to Meteor 1.4.1 #224

Closed
bsbechtel opened this issue Sep 13, 2016 · 8 comments
Closed

Permissions Error When Upgrading to Meteor 1.4.1 #224

bsbechtel opened this issue Sep 13, 2016 · 8 comments

Comments

@bsbechtel
Copy link

I am trying to upgrade a Meteor app from version 1.2 to the latest stable version - 1.4.1. I keep getting the following error regarding permissions:

While loading package fourseven:[email protected]: error: Command failed: /Users/bsbechtel/.meteor/packages/meteor-tool/.1.4.1_1.10bdqiz++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm rebuild --no-bin-links --update-binary { [Error: EACCES: permission denied, mkdir '/Users/bsbechtel/.meteor/packages/fourseven_scss/.3.8.1.9616xb++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-eq58qh/node_modules/node-sass/vendor/darwin-x64-46'] errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/Users/bsbechtel/.meteor/packages/fourseven_scss/.3.8.1.9616xb++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-eq58qh/node_modules/node-sass/vendor/darwin-x64-46' } gyp info it worked if it ends with ok gyp verb cli [ '/Users/bsbechtel/.meteor/packages/meteor-tool/.1.4.1_1.10bdqiz++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node', gyp verb cli '/Users/bsbechtel/.meteor/packages/fourseven_scss/.3.8.1.9616xb++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' ] gyp info using [email protected] gyp info using [email protected] | darwin | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verbwhichsucceeded python2 /usr/local/bin/python2 gyp verb check python version/usr/local/bin/python2 -c "import platform;
print(platform.python_version());"returned: "2.7.9\n" gyp verb get node dir no --target version specified, falling back to host node version: 4.5.0 gyp verb command install [ '4.5.0' ] gyp verb install input version string "4.5.0" gyp verb install installing version: 4.5.0 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 4.5.0 gyp verb build dir attempting to create "build" dir: /Users/bsbechtel/.meteor/packages/fourseven_scss/.3.8.1.9616xb++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-eq58qh/node_modules/node-sass/build gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/bsbechtel/.meteor/packages/fourseven_scss/.3.8.1.9616xb++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-eq58qh/node_modules/node-sass/build' gyp ERR! stack at Error (native) gyp ERR! System Darwin 15.6.0 gyp ERR! command "/Users/bsbechtel/.meteor/packages/meteor-tool/.1.4.1_1.10bdqiz++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node" "/Users/bsbechtel/.meteor/packages/fourseven_scss/.3.8.1.9616xb++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /Users/bsbechtel/.meteor/packages/fourseven_scss/.3.8.1.9616xb++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-eq58qh/node_modules/node-sass gyp ERR! node -v v4.5.0 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok Build failed

Note above the error is with package version 3.8.1, but I've tried it with 3.9.0 as well and keep getting the same issue. I've tried changing permissions on the package folders per the error and used sudo to install, and am still not having any luck. Has anyone else experienced this?

@WimAtIHomer
Copy link
Contributor

Same problem here.

@bsbechtel
Copy link
Author

@WimAtIHomer I ended up deleting my entire meteor install and doing a fresh install per this thread. It wasn't really ideal, but it fixed the problem.

@bsbechtel bsbechtel reopened this Sep 16, 2016
@bsbechtel
Copy link
Author

So I was having this issue with my development directory, but when I switched over to my testing directory on my development machine, I ran into this same issue. I tried deleting meteor and reinstalling without any luck this time. I don't know if this is an SCSS issue or Meteor issue.

@WimAtIHomer
Copy link
Contributor

I have downloaded the package to the /packages folder in my project to make it a 'local' package and then it installed fine. That is for now a workable solution for me.

@bsbechtel
Copy link
Author

I uninstalled node-gyp and reinstalled without sudo, after changing my npm installer's permissions. This has gotten it to work in my testing directory, but I'm hesitant to close this out yet. Permissions issues with building files between Meteor, NPM, and node-gyp seems to be a big rat's nest. I don't know if @fourseven could weigh in on this one?

@HZSamir
Copy link

HZSamir commented Sep 20, 2016

Same issue as well

@bsbechtel
Copy link
Author

So I finally got this figured out after several days of deleting, reinstalling, and changing permissions on my node, npm, and meteor installs. My first advice if you are facing this issue would be to make sure your node/npm install doesn't require sudo to run (see this thread). The same goes for Meteor, although installing node via sudo seems to be more common. Once that is out of the way, the issue you are probably facing has to do with cached or previous builds within your project. The easiest way I figured out how to track down those issues is to just run your project with meteor, and then sudo chown -Rv $USER:$GROUP /directory/giving/EACCESS/error. Hopefully this helps!

@HZSamir
Copy link

HZSamir commented Sep 21, 2016

Fixed the issue by downloading the package from Github, extracting its folder it in a "packages" folder at the root of my project, deleting ".meteor/local" then running meteor run again.

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

3 participants