When you npm publish
, if you don’t have an .npmignore
file, npm will use your .gitignore
file (in your case you excluded the dist
folder).
To solve your problem, create a .npmignore
file based on your .gitignore
file, without ignoring the dist folder.
More Related Contents:
- How to use private Github repo as npm dependency
- Do I commit the package-lock.json file created by npm 5?
- npm install private github repositories by dependency in package.json
- npm install shows error with git not found
- The authenticity of host ‘github.com (192.30.252.128)’ can’t be established
- npm ERR! git dep preparation failed when trying to install package.json
- How to fix npm throwing error without sudo
- Is there a way to make npm install (the command) to work behind proxy?
- NodeJS require a global module/package
- Cannot install packages using node package manager in Ubuntu
- npm ERR cb() never called
- Node – was compiled against a different Node.js version using NODE_MODULE_VERSION 51
- How to edit a node module installed via npm?
- Why does “npm install” rewrite package-lock.json?
- How to install a node.js module without using npm?
- Change default global installation directory for node.js modules in Windows?
- How to set npm credentials using `npm login` without reading from stdin?
- How to fix npm vulnerabilities manually?
- npm install -g less does not work: EACCES: permission denied
- How to resolve Node.js: “Error: ENOENT: no such file or directory”
- Node JS NPM modules installed but command not recognized
- Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
- update package.json version automatically
- Can’t install any packages in Node.js using “npm install”
- npm: Why is a version “0.1” invalid?
- How to organise file structure of backend and frontend in MERN
- npm doesn’t work, get always this error -> Error: Cannot find module ‘are-we-there-yet’
- Can’t install any package with node npm
- What’s the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file?
- Getting 404 when attempting to publish new package to NPM