npm - Permissions denied to override or delete node targets -


i've been running issue every time i've attempted run npm install command receive error: '-bash: npm: command not found' i've attempted uninstall , reinstall both node , npm using homebrew, still running few errors. after i've uninstalled both, have run command: "brew doctor" , "your system ready brew."

first attempt install node: "brew install node", following:

==> downloading https://homebrew.bintray.com/bottles/node-  0.12.7.yosemite.bottle downloaded: /library/caches/homebrew/node-0.12.7.yosemite.bottle.tar.gz ==> pouring node-0.12.7.yosemite.bottle.tar.gz ==> caveats  bash completion has been installed to:   /usr/local/etc/bash_completion.d error: `brew link` step did not complete formula built, not symlinked /usr/local not symlink share/systemtap/tapset/node.stp target /usr/local/share/systemtap/tapset/node.stp exists. may want remove it:   rm '/usr/local/share/systemtap/tapset/node.stp'  force link , overwrite conflicting files:   brew link --overwrite node  list files deleted:   brew link --overwrite --dry-run node  possible conflicting files are: /usr/local/share/systemtap/tapset/node.stp /usr/local/lib/dtrace/node.d warning: post-install step did not complete can try again using `brew postinstall node` ==> summary 🍺  /usr/local/cellar/node/0.12.7: 2726 files, 31m jamess-macbook-pro:~ jamesbradley$  

so attempt remove target:

jamess-macbook-pro:~ jamesbradley$ rm  '/usr/local/share/systemtap/tapset/node.stp' override rw-r--r--  root/admin /usr/local/share/systemtap/tapset/node.stp? y rm: /usr/local/share/systemtap/tapset/node.stp: permission denied jamess-macbook-pro:~ jamesbradley$ 

and following:

rm: /usr/local/share/systemtap/tapset/node.stp: permission denied 

so attempt override , error:

linking /usr/local/cellar/node/0.12.7...  error: not symlink share/systemtap/tapset/node.stp /usr/local/share/systemtap/tapset not writable. jamess-macbook-pro:~ jamesbradley$  

i've attempted brew postinstall node , response:

error: permission denied - /usr/local/lib/node_modules/npm jamess-macbook-pro:~ jamesbradley$  

i've attempted run number of other commands:

sudo chown -r `whoami` /library/caches/homebrew/ ruby -e "$(curl -fssl https://raw.githubusercontent.com/homebrew/install/master/install)" rm -rf /usr/local/cellar /usr/local/.git && brew cleanup 

but nothing seems working.

does know how can obtain permissions delete and/or how make these files writable can either overwrite or delete them?

remove folder

sudo rm -rf /usr/local/share/systemtap/ 

remove node installed if want.

brew uninstall node 

then reinstall node

brew install node 

i had same issue, worked me.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -