Ответы пользователя по тегу npm
  • Как запустить npm install под ubuntu 15?

    @Chetson Автор вопроса
    front-end разработчик
    Да - на такое тоже нарывался - сделал, но проблему не решило
    sudo npm install -g

    ответ таков
    /
    > angular-phonecat@0.0.0 postinstall /usr/local/lib/node_modules/angular-phonecat
    > bower install
    
    
    Error: EACCES, permission denied '/home/lis/.config/configstore/bower-github.yml'
    You don't have access to this file.
    
        at Object.fs.openSync (evalmachine.<anonymous>:432:18)
        at Object.fs.readFileSync (evalmachine.<anonymous>:286:15)
        at Object.create.all.get (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:34:29)
        at Object.Configstore (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:27:44)
        at readCachedConfig (/usr/local/lib/node_modules/bower/lib/config.js:22:23)
        at defaultConfig (/usr/local/lib/node_modules/bower/lib/config.js:11:24)
        at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js:40:32)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    npm ERR! angular-phonecat@0.0.0 postinstall: `bower install`
    npm ERR! Exit status 8
    npm ERR! 
    npm ERR! Failed at the angular-phonecat@0.0.0 postinstall script.
    npm ERR! This is most likely a problem with the angular-phonecat package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     bower install
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls angular-phonecat
    npm ERR! There is likely additional logging output above.
    
    npm ERR! System Linux 3.19.0-23-generic
    npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g"
    npm ERR! cwd /home/lis/angular/angular-phonecat
    npm ERR! node -v v0.10.25
    npm ERR! npm -v 1.4.21
    npm ERR! code ELIFECYCLE
    npm ERR! 
    npm ERR! Additional logging details can be found in:
    npm ERR!     /home/lis/angular/angular-phonecat/npm-debug.log
    npm ERR! not ok code 0
    Ответ написан