to get the default path:
npm config get prefix
export PATH="/Users/username/npm/lib/node_modules/vue-cli/bin:$PATH"
$PATH="/Users/username/npm/lib/node_modules/vue-cli/bin:$PATH"
The default on OS X is /usr/local, which means that npm will symlink binaries into /usr/local/bin, which should already be on your PATH (especially if you're using Homebrew).
沒有留言:
張貼留言