ncc icon indicating copy to clipboard operation
ncc copied to clipboard

ncc command not found

Open airon-tark opened this issue 4 years ago • 3 comments

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

airon-tark avatar Apr 12 '22 13:04 airon-tark

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 avatar Apr 12 '22 14:04 styfle

@styfle

Thanks, it works!

airon-tark avatar Apr 15 '22 05:04 airon-tark

I get the same problem on my Github Codespace, what to do then?

daniel-martensson avatar Feb 24 '23 09:02 daniel-martensson