marklogic-samplestack icon indicating copy to clipboard operation
marklogic-samplestack copied to clipboard

npm install fails on i-0.3.2

Open netdance opened this issue 9 years ago • 3 comments

npm install fails with the following error:

npm ERR! fetch failed https://registry.npmjs.org/i/-/i-0.3.2.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 504

This library no longer exists in the repo, hence the failure.

This is on the latest version of node 0.10.46, running under nvm.

netdance avatar Sep 16 '16 01:09 netdance

Hi Jim just seeing this. What OS are you running? These are the versions we tested though I wouldn't think a dot increase on node 0.10 would matter: https://github.com/marklogic/marklogic-samplestack/wiki/Version-Compatibility

We have a few wikis on troubleshooting but I don't see your specific case. https://github.com/marklogic/marklogic-samplestack/wiki/Node.js-and-npm-Tips-for-Samplestack-Development https://github.com/npm/npm/wiki/Troubleshooting

Tagging @laurelnaiad - What's the workaround for the missing library?

@netdance - alternatively you could try running the Java version with the pre-built/static front end version: https://github.com/marklogic/marklogic-samplestack/blob/master/appserver/java-spring/README.md Would that meet your immediate needs?

popzip avatar Sep 30 '16 17:09 popzip

Hi @netdance , @popzip,

Sorry it took me a while to figure this out. It's actually a simple fix/workaround, but until I realized it I was stumped....

What's happening is that the shrinkwrap file is preventing npm from addressing the fact that the npm i module version 0.3.2 was accidentally unpublished from npm.

$ rm -rf npm-shrinkwrap.json       # or delete it using whatever mechanism

should do the trick.

This tested on:

$ node --version ; npm --version
v0.10.46
3.10.8

If you need to update npm, that can be done via

$ npm i -g npm

I hope that gets you unstuck.

laurelnaiad avatar Oct 05 '16 16:10 laurelnaiad

The removal of npm-schrinkwarp did not work for me. Changed npm-schrinkwarp the versions https://registry.npmjs.org/i/-/i-0.3.2.tgz to 0.3.5. Installation is now working, as described in the documentation. Samplestack seems to run without issues. Maybe change this in the package. Avoiding other running into the same issue, having to browse for a solution.

pbenthem avatar Dec 13 '16 11:12 pbenthem