node.js - npm install fails because of chown -
i have installed npm locally in ~/.local now, want install grunt-cli globally in local install, have output :
npm err! linux 3.19.0-18-generic npm err! argv "/home/etud/(my name)/.local/usr/bin/node" "/home/etud/(my name)/.local/bin/npm" "install" "-g" "grunt-cli" npm err! node v4.1.1 npm err! npm v2.14.4 npm err! path /home/etud/(my name)/.npm/grunt-cli/0.1.13/package/package.json.ee5c5aa03b9d2c7367d767e1d6e17af3 npm err! code unknown system error -121 npm err! errno -121 npm err! syscall chown npm err! unknown system error -121: unknown system error -121, chown '/home/etud/(my name)/.npm/grunt-cli/0.1.13/package/package.json.ee5c5aa03b9d2c7367d767e1d6e17af3' npm err! npm err! if need help, may report error at: npm err! <https://github.com/npm/npm/issues> npm err! please include following file support request: npm err! /home/etud/(my name)/npm-debug.log i've done :
$> npm config set -g user=`whoami` and put ~/.npmrc :
root = /home/(my name)/.local/lib/node_modules binroot = /home/(my name)/.local/bin manroot = /home/(my name).local/share/man any idea ?
edit i'm on university machine working on nfs systems. seems can't call chown command because of problem of user map.
is there way make npm skip chown ?
Comments
Post a Comment