ncc
ncc copied to clipboard
ncc command not found
Hey, guys! I am going through the readme, and can't get it started.
$ npm i -g @vercel/ncc
/usr/local/Cellar/node/17.6.0_1/bin/ncc -> /usr/local/Cellar/node/17.6.0_1/lib/node_modules/@vercel/ncc/dist/ncc/cli.js
+ @vercel/[email protected]
updated 1 package in 0.363s
$ ncc build
zsh: command not found: ncc
Installed successfully, but then can't find the command
Thanks in advance
This can happen if your npm is installed through something other than the official https://nodejs.org which might not add the global install to your PATH.
From your comment above, the installed location is /usr/local/Cellar/node/17.6.0_1/lib/node_modules/@vercel/ncc/dist/ncc/cli.js
So you would need to add that to your path or invoke it directly
/usr/local/Cellar/node/17.6.0_1/lib/node_modules/@vercel/ncc/dist/ncc/cli.js build
@styfle
Thanks, it works!
I get the same problem on my Github Codespace, what to do then?