-bash:续集:找不到命令 [英] -bash: sequelize: command not found

查看:63
本文介绍了-bash:续集:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在我的项目根目录中运行了 npm install --save sequelize pg pg-hstore,现在我无法调用 sequelize init.我收到错误:-bash: sequelize: command not found.我做错了什么?

I just ran npm install --save sequelize pg pg-hstore in my project root directory and now I am unable to invoke sequelize init. I get the error: -bash: sequelize: command not found. What am I doing wrong?

推荐答案

我想回答我自己的问题.我的计算机的全局 npm 安装路径是错误的.

I would like to answer my own question. The global npm install path was wrong for my computer.

npm 配置获取前缀

然后我跑去把路径放在它应该放在的地方.这个问题让我很头疼.希望它可以帮助某人.

Then I ran to put the path where it should be. This problem gave me a lot of head aches. Hope it helps someone.

npm 配置设置前缀/usr/local

npm config set prefix /usr/local

这篇关于-bash:续集:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆