Comments (4)
非常感谢反馈!
安装之前会帮你备份原来的 npm
命令文件,你可能没有对原 npm
文件的写权限,所以在备份文件的时候出错了,你可以用命令 ls -l $(which npm)
确认下你是否有写权限。
如果确实是没有写权限,你可以安装时用管理员权限安装,即 sudo npm install --global --registry=https://registry.npm.taobao.org/
我在下一个版本改善下安装过程的体验,再一次感谢您的反馈!
from smart-npm.
看起来这里并不是权限问题,而好像跟我的shell有关,好像是因为fish不支持&&
from smart-npm.
你这次错误提示和上次不一样了,看来确实不是权限问题。
我晚上找时间看下!
from smart-npm.
实在想不到有什么很好的方法,现在把自动备份 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)
- npm
- window8安装了smart-npm之后,输入npm错误 HOT 4
- macOS Sierra使用snpm安装hexo失败 HOT 6
- 是否考虑出一个smart-yarn? HOT 1
- 请问这个对 node.js 4.1.1 支持的怎么样 HOT 1
- windows下安装后出错 HOT 2
- 希望对 npm 命令路径的处理更智能些 HOT 3
- 读取缓存问题 HOT 1
- cnpm registry 是不是可以去掉了? HOT 2
- centos6.5安装失败 HOT 3
- 其实我觉得npm慢是npm程序本身的问题 HOT 8
- 关于更新了npm之后snpm -v的显示内容的问题 HOT 1
- 无法安装成功 HOT 5
- An in-range update of snyk is breaking the build 🚨 HOT 83
- 安装了smart-npm后,运行什么都出错了,该怎么卸载smart-npm HOT 1
- 升级 npm后 snpm -v 显示的npm版本是老的 HOT 3
- we must check into the path where npm locate HOT 1
- windows下 snpm install-npm报错
- Centos 7 安装失败 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smart-npm.