nodemon: command not found
nodemon起服務時報錯:nodemon: command not found,明明已經安裝了:sudo npm install nodemon -g
嗶了狗,gulp、grunt也是一樣的問題。
npm root 發現路徑不對
解決方案
npm config set prefix /usr/local
更改安裝目錄之後重新安裝nodemon、gulp、grunt或者其它庫。完美解決。
更新:一個監控檔案改變的小技巧
^Cbogon:qd-mobile wuhaiwei$ sudo npm start
^Cbogon:qd-mobile wuhaiwei$ sudo nodemon --exec 'npm start'
專案跟目錄下執行上述任一命令,可以把程式碼同步更新到瀏覽器,不足之處是還需要在瀏覽器手動重新整理。
相關文章
- -bash: id: command not found -bash: tty: command not found
- pip: command not found
- mac mysql: command not foundMacMySql
- zsh:command not found: xxx
- Mac -bash: mysql: command not foundMacMySql
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- 【Linux】git note -v command not foundLinuxGit
- centos 7 -bash: mysql: command not foundCentOSMySql
- sudo: apt-get: command not foundapt-get
- 【linux報錯】-bash: xhost: command not foundLinux
- bash: lspci: command not found解決方法
- zsh: command not found: bee bee工具安裝
- bash: ssh-copy-id: command not found...
- -bash: XXX: command not found解決辦法
- python virtualenv報錯-bash: virtualenv: command not foundPython
- zabbix_get :command not found 解決辦法
- Mac終端出現 brew command not found 解決Mac
- Linux提示crontab command not found的解決方法Linux
- Mac之telnet報錯-bash: telnet: command not foundMac
- 解決bash: mysql: command not found的問題MySql
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- 解決shell指令碼錯誤$’r’ command not found指令碼
- “command-not-found has crashed” 解決辦法 (*unsolved)
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- Error executing Jupyter command 'notebok': [Errno 'jupyter-notebok' not found] 2Error
- CentOS 7 命令 lsb_release: command not found 解決方案CentOS
- 解決 biolinux-conda command not found 2018-05-04Linux
- bug solved | zsh: command not found: mongo (Mac M1/M2 )GoMac
- test.sh: line 3: $‘\r‘: command not found 或者 vim去掉^M字元字元
- 踩坑記錄:vue-cli-service: command not found(Mac環境下)VueMac
- Nodemon包的使用
- CentOS 已安裝virtualenv, 但還是報錯誤 bash: virtualenv: command not foundCentOS
- 阿里雲伺服器Centos映象解決方案apt-get: command not found阿里伺服器CentOSapt-get
- nodejs開發輔助工具nodemonNodeJS
- vscode 除錯node之npm與nodemonVSCode除錯NPM
- PHP-fpm Linux 環境使用 exec 函式呼叫 FFmpeg,報錯 FFmpeg: command not found 的解決方法PHPLinux函式
- How to use “cat” command on “find” command's output?