I've serve installed on my computer:
$ which serve
/usr/local/bin/serve
Hence, when I do npm i -g --only=prod https-localhost, I get an error during the installation:
npm i -g --only=prod https-localhost
npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/https-localhost/index.js
npm ERR! dest /usr/local/bin/serve
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/https-localhost/index.js' -> '/usr/local/bin/serve'
npm ERR! File exists: /usr/local/bin/serve
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/user/.npm/_logs/2021-01-11T17_01_48_121Z-debug.log
To me, it would make sense if the binary was called https-localhost or similar. Currently, it is called serve.
I've serve installed on my computer:
Hence, when I do
npm i -g --only=prod https-localhost, I get an error during the installation:To me, it would make sense if the binary was called
https-localhostor similar. Currently, it is called serve.