无法运行npm软件包
Mac-终端
我想运行一个名为:appdirect的npm模块
问题是,安装后我无法运行该模块。我在不同的计算机上进行了几次尝试,取得了成功。除了我的。
所以我安装了
- Node.js版本10-程序包
- Node-sass-npm -g安装节点-sass
- Xcode-开发
This is what the installation of the npm module looks like
然后我运行sfb-toolkit start并出现以下错误:
bash: sfb-toolkit: command not found
似乎是造成此问题的原因?这与Node.JS包的路径有关吗?
回答如下:全局安装npm模块,这使得它可以从命令行作为命令来访问。您可以通过在npm install命令中添加-g
来完成此操作]
npm install -g <package-name>
如果要在项目中本地安装并通过命令行访问它。在
node_modules
中获取包路径并调用它
无法运行npm软件包
Mac-终端
我想运行一个名为:appdirect的npm模块
问题是,安装后我无法运行该模块。我在不同的计算机上进行了几次尝试,取得了成功。除了我的。
所以我安装了
- Node.js版本10-程序包
- Node-sass-npm -g安装节点-sass
- Xcode-开发
This is what the installation of the npm module looks like
然后我运行sfb-toolkit start并出现以下错误:
bash: sfb-toolkit: command not found
似乎是造成此问题的原因?这与Node.JS包的路径有关吗?
回答如下:全局安装npm模块,这使得它可以从命令行作为命令来访问。您可以通过在npm install命令中添加-g
来完成此操作]
npm install -g <package-name>
如果要在项目中本地安装并通过命令行访问它。在
node_modules
中获取包路径并调用它