j5ndev / npm-bundle

npm pack with dependencies included
https://www.npmjs.com/package/npm-bundle
38 stars 6 forks source link

npm install bundle.tgz always failed #13

Open robertchen opened 7 years ago

robertchen commented 7 years ago

package.json: { "name": "tmp", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "couchbase-promises": "^4.0.1" } }

npm-bundle will generate tmp-1.0.0.tgz

then I do: npm install tmp-1.0.0.tgz

npm ERR! Refusing to install tmp as a dependency of itself npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /home/robert/tmp/tmp2/npm-debug.log

manuelreinhart commented 6 years ago

Try to rename or remove the package.json file before npm install tmp.tgz