vc-npm-resume-bekah-haha

0.0.3Β β€’Β PublicΒ β€’Β Published

Virtual Coffee npm Resume

A workshop showing making your own npx-runnable npm package. 🎁

We'll cover:

  1. (topic: node/npm) How to set up a very straightforward npm package (just a single .js file)
  2. (topic: core JS) Logging some things in the file
  3. (topic: node/npm) Adding a dependency on chalk to get nice colors
  4. (topic: core JS) Wrapping those logs with | etc. characters to make a table
  5. (delighter) Using arbitrary math to make a gradient with chalk

https://www.npmjs.com/package/vc-npm-resume

Steps we took

  1. Create an index.js file
  2. Add a console.log to that file
  3. Add #!/usr/bin/env node to the top
  4. Make an npm account (https://www.npmjs.com/signup)
  5. npm login
    • Verify with npm whoami
  6. npm publish
  7. npx vc-npm-resume@latest

Debugging

403 Error in npm publish

You do not have permission to publish "vc-npm-resume". Are you logged in as the correct user?

Change the name in your package.json.

You cannot publish over the previously published versions

Try changing the version in package.json.

Otherwise, try npm login to make sure you're logged in.

npm ERR! could not determine executable to run

Add a bin entry in package.json. And don't feel to bad about it, I totally forgot during the workshop πŸ˜‰.

Readme

Keywords

Package Sidebar

Install

npm i vc-npm-resume-bekah-haha

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

3 kB

Total Files

4

Last publish

Collaborators

  • joshuakgoldberg