mshima / generator-jhipster-tenantview

Customization for tenancy and multi-tenancy
9 stars 3 forks source link

npm ERR! code E404 #33

Closed shwabnitz closed 4 years ago

shwabnitz commented 4 years ago

Same terminal as with the test yesterday (#31) on jhipster 6.7.0 (also without "#master"):

npm install -g mshima/generator-jhipster-tenantview#master
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error
npm ERR! 404 
npm ERR! 404  'error@^7.0.2' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'yeoman-generator'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Is that my fault?

Originally posted by @shwabnitz in https://github.com/mshima/generator-jhipster-tenantview/issues/31#issuecomment-585293445

mshima commented 4 years ago

$ sudo npm install -g mshima/generator-jhipster-tenantview#master Password:

ejs@3.0.1 postinstall /usr/local/lib/node_modules/generator-jhipster-tenantview/node_modules/ejs node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

ejs@2.7.4 postinstall /usr/local/lib/node_modules/generator-jhipster-tenantview/node_modules/mem-fs-editor/node_modules/ejs node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

npm WARN generator-jhipster-tenantview@0.4.1 requires a peer of generator-jhipster@^6.3.0 but none is installed. You must install peer dependencies yourself. npm WARN generator-jhipster-customizer@0.2.1 requires a peer of generator-jhipster@^6.3.0 but none is installed. You must install peer dependencies yourself.

shwabnitz commented 4 years ago

My environment runs completely without any root rights, so it would be good to find a solution without executing as root. It seems that the URL does not exist: https://registry.npmjs.org/error, wget does not work neither.

So I installed ejs manually which worked fine:

npm install ejs

> ejs@3.0.1 postinstall <homedir>/data/dev/projects/multi5/node_modules/ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

npm WARN saveError ENOENT: no such file or directory, open '<homedir>/data/dev/projects/multi5/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '<homedir>/data/dev/projects/multi5/package.json'
npm WARN multi5 No description
npm WARN multi5 No repository field.
npm WARN multi5 No README data
npm WARN multi5 No license field.

+ ejs@3.0.1
added 1 package from 1 contributor and audited 1 package in 1.39s
found 0 vulnerabilities

Applicable lines from the logfile of the command

npm install -g mshima/generator-jhipster-tenantview#master

1268 silly resolveWithNewModule read-pkg-up@5.0.0 checking installable status
1269 timing stage:rollbackFailedOptional Completed in 0ms
1270 timing stage:runTopLevelLifecycles Completed in 22381ms
1271 verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/error
1271 verbose stack     at res.buffer.catch.then.body (<homedir>/.npm/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:104:15)
1271 verbose stack     at process._tickCallback (internal/process/next_tick.js:68:7)
1272 verbose statusCode 404
1273 verbose pkgid error@^7.0.2
1274 verbose cwd <homedir>/data/dev/projects/multi5
1275 verbose Linux 4.15.0-76-generic
1276 verbose argv "/usr/bin/node" "<homedir>/.npm/bin/npm" "install" "-g" "mshima/generator-jhipster-tenantview#master"
1277 verbose node v10.19.0
1278 verbose npm  v6.13.6
1279 error code E404
1280 error 404 Not Found - GET https://registry.npmjs.org/error
1281 error 404
1282 error 404 'error@^7.0.2' is not in the npm registry.
1283 error 404 You should bug the author to publish it (or use the name yourself!)
1284 error 404 It was specified as a dependency of 'yeoman-generator'
1285 error 404 Note that you can also install from a
1286 error 404 tarball, folder, http url, or git url.
1287 verbose exit [ 1, true ]
mshima commented 4 years ago

This should be a npm problem. Just released a version, it should fix this.