Git Product home page Git Product logo

Comments (10)

zjl410091917 avatar zjl410091917 commented on May 27, 2024

使用的是root角色

from pinus.

whtiehack avatar whtiehack commented on May 27, 2024

sudo npm install -g pinus

or

npm install -g pinus --unsafe-perm

from pinus.

zjl410091917 avatar zjl410091917 commented on May 27, 2024

@whtiehack 同样的错误

from pinus.

whtiehack avatar whtiehack commented on May 27, 2024

你可能要重装一下node.js , 你可以先试试这个库 npm install -g node-gyp 或者 npm install -g pm2 看能不能装上,你这个问题不像是 pinus的问题。

from pinus.

zjl410091917 avatar zjl410091917 commented on May 27, 2024

sh-3.2# npm i -d -g pinus --unsafe-perm
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm http fetch GET 304 https://registry.npm.taobao.org/pinus 356ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/@types%2fmocha 127ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/node-bignumber 60ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/cliff 293ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/mqtt-connection 291ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/mkdirp 293ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/@types%2fsocket.io 297ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/eyes 296ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/crc 298ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/async 300ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/commander 302ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/pinus-admin 144ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/pinus-loader 73ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/pinus-logger 87ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/pinus-protocol 104ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/pinus-protobuf 113ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/pinus-rpc 114ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/pinus-scheduler 119ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/seq-queue 118ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/socket.io 118ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/ws 96ms (from cache)
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone -q https://github.com/node-pinus/types-mqtt-connection.git /var/root/.npm/_cacache/tmp/git-clone-af01964a
npm ERR! fatal: could not create leading directories of '/var/root/.npm/_cacache/tmp/git-clone-af01964a': Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /var/root/.npm/_logs/2018-03-31T04_03_06_476Z-debug.log

@whtiehack 我在MAC上安装同样的错误 node-gyp等安装是没有问题的

from pinus.

whtiehack avatar whtiehack commented on May 27, 2024

别加 -d 试试。。

from pinus.

mybios avatar mybios commented on May 27, 2024

权限问题要先执行sudo -s切换到root用户,再执行安装

from pinus.

yuu2lee4 avatar yuu2lee4 commented on May 27, 2024

文件夹权限问题。。

from pinus.

JasonAtGitHub avatar JasonAtGitHub commented on May 27, 2024

一样的问题,root用户在Mac和Linux安装失败,在Windows上就没问题

from pinus.

JasonAtGitHub avatar JasonAtGitHub commented on May 27, 2024

Mac解决方案:将/usr/local/lib/node_modules的用户修改为当前用户,即sudo chown -R /usr/local/lib/node_modules
调用命令:npn i pinus -g
注意,不用加上sudo

from pinus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.