marklogic-community / marklogic-samplestack

A sample implementation of the MarkLogic Reference Architecture
Apache License 2.0
82 stars 56 forks source link

Installation failed on RedHadLinux7 #706

Closed yosukew closed 7 years ago

yosukew commented 7 years ago

Hi,

I tried install samplestack on RedHatLinux 7. But 'npm install' failes with the following

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 404

I had succeeded to install on RedHatLinux 6 before. Is this application not compatible for RHEL7?

Node.JS version is following

# npm -v
3.10.8
# node --version
v6.9.1
jmakeig commented 7 years ago

The specific version of i that we’ve shrinkwrapped on no longer exists: “NOTE: 0.3.2 was accidentally unpublished from the server and npm doesn't allow me to publish it back. Please upgrade to 0.3.3”.

yosukew commented 7 years ago

Thank you for your answer

I had changed npm-shrinkwrap.json as following,that error had been solved. (around 8090th lines)

before)
"version": "0.3.2",
"from": "i@>=0.3.0 <0.4.0",
"resolved": "https://registry.npmjs.org/i/-/i-0.3.2.tgz"

after)
"version": "0.3.3",
"from": "i@>=0.3.0 <0.4.0",
"resolved": "https://registry.npmjs.org/i/-/i-0.3.3.tgz"

After this,I had execute "gulp once --browser=chrome". But another error messages appeared following,

[21:40:43] Error: `libsass` bindings not found. Try reinstalling `node-sass`?
    at getBinding (/root/marklogic-samplestack/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:22:11)
    at Object.<anonymous> (/root/marklogic-samplestack/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:188:23)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/marklogic-samplestack/node_modules/gulp-sass/index.js:3:17)

log.txt

popzip commented 7 years ago

It might be the node version - current version works with node v0.10: https://github.com/marklogic/marklogic-samplestack/wiki/Version-Compatibility

garyrusso commented 7 years ago

I have no problems running it with Node version v6.9.1.

This is my local stack:

popzip commented 7 years ago

We can try and reproduce - but I also notice we tested on RH6.4 and user has RH7...

clockworked247 commented 7 years ago

Judging from the comments on: https://github.com/sass/node-sass/issues/918

The most prudent course of action to fix your node-sass problem would be to:

otherwise an "rm -rf node_modules" + "npm install" would also be a good idea.

Please report back with your results.