Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor Error: EACCES: permission denied, rmdir 'build'

I have this error when i try to update my meteor project from Meteor 1.3.5.1 to METEOR 1.4. I don't know why i have this error. I have already try to do a chown to .meteor and .np floder.

 => Errors while initializing project:         

    While loading package [email protected]:
    error: Command failed:
    /home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
    rebuild --no-bin-links --update-binary
    gyp ERR! clean error 
    gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
    gyp ERR! stack     at Error (native)
    gyp ERR! System Linux 3.16.0-38-generic
    gyp ERR! command
    "/home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
    "/home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
    "rebuild"
    gyp ERR! cwd
    /home/noob/.meteor/packages/npm-bcrypt/.0.8.7.1np1i1l++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-140iag7/node_modules/bcrypt
    gyp ERR! node -v v4.4.7
    gyp ERR! node-gyp -v v3.4.0
    gyp ERR! not ok 

    npm ERR! Linux 3.16.0-38-generic
    npm ERR! argv
    "/home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
    "/home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
    "rebuild" "--no-bin-links" "--update-binary"
    npm ERR! node v4.4.7
    npm ERR! npm  v3.10.5
    npm ERR! code ELIFECYCLE
    npm ERR! [email protected] install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR! 
    .....
like image 487
user3415686 Avatar asked Jul 26 '16 15:07

user3415686


People also ask

What might be causing the error error Eacces Permission denied access '/ usr local lib Node_modules '?

This means you do not have permission to write to the directories npm uses to store global packages and commands. Try running commands: sudo chmod u+x -R 775 ~/. npm and sudo chown $USER -R ~/. npm or you can just run any npm command with sudo , that should get resolve your issue.


2 Answers

It was an permission error I do a sudo chown -R $USERNAME /home/noob and now all work fine

like image 151
user3415686 Avatar answered Oct 20 '22 05:10

user3415686


Look more like a Node-gyp problem.

Extracted from Meteor docs:

If you have binary npm packages in your application node_modules directory, you should run meteor npm rebuild (after meteor update) in your application directory to recompile those packages.

If it still doesn't work, try removing your ~/.node-gyp file and then npm update.

like image 44
Cezar Augusto Avatar answered Oct 20 '22 04:10

Cezar Augusto