npm安裝gulp時報錯,gulp安裝不成功.提示 gulp command not find
我用的是linux ,嘗試自己解決,無法解決,搜尋下找到博主同樣錯誤;希望能幫到各位:
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected] , [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected] , [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected] , [email protected], [email protected])
為您提供一些上下文:我執行以下命令來全域性安裝Gulp(節點包模組): npm install -g gulp
安裝成功但是當我gulp
在命令列中執行此命令時出現"gulp: command not found"
錯誤。它似乎在我的本地資料夾中安裝了“Gulp”,/Users/YOURUSERNAME/node_modules
而不是在全域性NPM資料夾中。
您可以通過執行以下命令來檢查:
npm root
或者npm root -g
,
它返回了我的個人目錄/Users/YOURUSERNAME/node_modules
而不是預期的目錄/usr/local/lib/node_modules
。
經過一些試驗和錯誤,我終於找到了解決方案。您必須更改“ npm config prefix”,如下所示:
npm config set prefix /usr/local
然後,當我重新執行時npm root -g
,我得到了正確的根資料夾: /usr/local/lib/node_modules
當我在全球範圍內重新安裝Gulp(使用-g
param)時,它終於工作並且看起來它現在已正確安裝在全域性NPM資料夾中。Yeay!
相關推薦
npm安裝gulp時報錯,gulp安裝不成功.提示 gulp command not find
我用的是linux ,嘗試自己解決,無法解決,搜尋下找到博主同樣錯誤;希望能幫到各位: ├── [email protected] ├── [email protected] ├── [email protected] ├──
雲伺服器 安裝sysbench報錯./libtool: line 841: X--tag=CC: command not found
重點內容背景,安裝sysbench編譯make報錯: ./libtool: line 841: X--tag=CC: command not found ../libtool: line 874: libtool: ignoring unknown tag :
R3.4.0安裝包時報錯“需要TRUE/FALSE值的地方不可以用缺少值”,需升級到R3.5.0
解決 地方 時報 bubuko 安裝 als 報錯 lse http 錯誤: 解決方案: 升級R3.5.0後,解決: R3.4.0安裝包時報錯“需要TRUE/FALSE值的地方不可以用缺少值”,需升級到R3.5.0
解決npm install時報錯無法安裝chromedriver的問題
deb 運行 platform supported com ora -bash likely 報錯 最近使用vue開發了一個前端項目,開發好後準備部署到服務器上。從git倉庫拉下項目代碼後,運行npm install安裝項目所依賴的模塊時卻報錯了,錯誤信息如下: >
win10上安裝tensorflow時報錯 ImportError: DLL load failed: 找不到指定的模組
win10上安裝tensorflow時報錯 ImportError: DLL load failed: 找不到指定的模組 https://visualstudio.microsoft.com/zh-hans/downloads/?rr=https%3A%2F%2Fsocial.msdn.mi
windows上安裝tensorflow時報錯,“DLL load failed: 找不到指定的模組”的解決方式
本文轉自http://blog.csdn.net/pjl6523853/article/details/72836214 最近打算開始研究一下機器學習,今天在windows上裝tensorflow花了點功夫,其實前面的步驟不難,只要依次裝好python3.5,num
npm 安裝vue時報錯
在npm安裝vue時報下列錯誤: npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe"
laravel 中 使用 composer 的中國映象安裝時報錯(找不到包)
composer require jenssegers/mongodb 安裝mongodb時報錯:Your requirements could not be resolved to an installable set of packages. 更新了一下compose
windows上安裝tensorflow時報錯,“DLL load failed: 找不到指定的模組”的解決方式 最近打算開始研究一下機器學習,今天在windows上裝tensorflow花了點功夫
本文轉載自:http://blog.csdn.net/pjl6523853/article/details/72836214 windows上安裝tensorflow時報錯,“DLL load failed: 找不到指定的模組”的解決方式 最近打算開始研究一下機器學習
VS2012 Nuget 安裝 AutoMapper時報錯的解決方法
for standard lin war syn test studio stand 解決方法 VS2012 在.net 4.0下安裝AutoMapper時,會報以下錯誤: “AutoMapper”已擁有為“Standard.Library”定義的依賴項。 ‘AutoMap
Laravel5.5執行 npm run dev時報錯,提示cross-env找不到(not found)的解決辦法
smo font span links 命令 develop ebp amp webpack Laravel 5.4 Mix & Laravel5.5執行 npm run dev時報錯,提示cross-env找不到(not found)的解決辦法 首先
pip安裝包時報錯
color tail var 原因 mpi rep -c lac base error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat) 原因:需要機器裝有vs2008 解決方案:安裝安
CentOS 7安裝Gitlab時報錯:undefined method `downcase' for nil:NilClass
說明:其實這事怪我,我把系統的某些配置改了。 首先分析這個錯誤出現的位置在這個檔案: /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/redhat_helper.rb 判斷程式碼如下所示: 這段程式碼
mac使用easy_install安裝pip時報錯 ImportError: No module named extern
1.首先根據以下步驟安裝pip: 1.Install easy_install curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python 2.Install pip s
win10 ent安裝Django時報錯:Could not install packages due to an EnvironmentError: [WinError 5] 拒絕訪問。
- Could not install packages due to an EnvironmentError: [WinError 5] 拒絕訪問。: 'c:\\program files\\python37\\Lib\\site-packages\\pytz'Consider using
安裝pycocotools時報錯
安裝pycocotools: 下載好安裝包到本地(連結:https://github.com/cocodataset/cocoapi),進入cocoapi-master/PythonAPI/資料夾下執行make編譯: $ cd cocoapi-master/ $ cd PythonAPI
安裝tesserocr時報錯
Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: ht tps://visualstudio.microsoft.c
yum安裝軟體時報錯libmysqlclient.so.18()(64bit)
環境:CentOS 7.4,使用阿里yum的網路源 問題: 使用yum安裝軟體時報錯 ... 2:postfix-2.10.1-6.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit) 2:postf
python pip install xxxx 中文路徑導致安裝庫時報錯問題解決的三種方式
報錯內容:UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd3 in position 7: ordinal not in range(128) 解決方案: 1.第一種辦法 在pycharm中開啟檔案(pyt
yum安裝軟體時報錯
今天在阿里雲伺服器上安裝rpm包HTTP服務的時候一直卡在那,之後就報錯 (系統是Centos6.5) [[email protected]123 ~]# yum -y install