Giter Club home page Giter Club logo

Comments (4)

qiu8310 avatar qiu8310 commented on August 31, 2024

非常感谢反馈!

安装之前会帮你备份原来的 npm 命令文件,你可能没有对原 npm 文件的写权限,所以在备份文件的时候出错了,你可以用命令 ls -l $(which npm) 确认下你是否有写权限。

如果确实是没有写权限,你可以安装时用管理员权限安装,即 sudo npm install --global --registry=https://registry.npm.taobao.org/

我在下一个版本改善下安装过程的体验,再一次感谢您的反馈!

from smart-npm.

faceair avatar faceair commented on August 31, 2024

qq20150409-1 2x
qq20150409-2 2x

qq20150409-3 2x

npm-debug.log

看起来这里并不是权限问题,而好像跟我的shell有关,好像是因为fish不支持&&

from smart-npm.

qiu8310 avatar qiu8310 commented on August 31, 2024

你这次错误提示和上次不一样了,看来确实不是权限问题。

我晚上找时间看下!

from smart-npm.

qiu8310 avatar qiu8310 commented on August 31, 2024

实在想不到有什么很好的方法,现在把自动备份 npm 功能去掉了,现在需要你在安装的时候手动替换原来的 npm,比如可以使用下面的命令:

# Mac 或者 Linux 用户
ln -s $(npm root -g)/npm/bin/npm-cli.js $(dirname $(which npm))/npm-original  # 将系统的 npm 备份到 npm-original
npm install --global smart-npm --registry=https://registry.npm.taobao.org/

from smart-npm.

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.