Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue CentOS #668

Closed
dligthart opened this issue Dec 10, 2014 · 9 comments
Closed

Installation issue CentOS #668

dligthart opened this issue Dec 10, 2014 · 9 comments

Comments

@dligthart
Copy link

Installing on CentOS results into the following error:

strider@1.6.0-pre.2 pre /usr/lib/node_modules/strider
mkdirp dist/scripts dist/styles

sh: mkdirp: command not found
npm ERR! weird error 127
npm ERR! not ok code 0
npm ERR! weird error 1
npm ERR! not ok code 0
npm ERR! weird error 1
npm ERR! not ok code 0

@knownasilya
Copy link
Member

Mae sure you aren't installing with the --production flag. Other then that, mkdirp is installed when doing npm install, so everything should work. Most likely a bad install, so delete node_modules/ folder and try again.

@dligthart
Copy link
Author

strider@1.6.0-pre.2 styles /usr/local/lib/node_modules/strider
lessc client/styles/strider.less > dist/styles/styles.css

sh: 1: lessc: not found

@dligthart
Copy link
Author

sudo npm install -g mkdirp
sudo npm install -g strider
sh: 1: lessc: not found
sudo npm install -g less

@dligthart
Copy link
Author

sh: 1: browserify: not found

@dligthart
Copy link
Author

Error: Cannot find module 'browserify-shim' from '/usr/local/lib/node_modules/strider'
at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:50:17
at process (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:119:43)
at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:128:21
at load (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:60:43)
at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:66:22
at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:21:47
at Object.oncomplete (fs.js:107:15)

@knownasilya
Copy link
Member

once again, you need to actually run npm install, those are all modules from npm that need to be installed and are in the package.json.

@dligthart
Copy link
Author

Yes but I'm installing strider from the npm.

"sudo npm install -g strider"

Those packages are missing; or for some reason not installed.

After manually installing above missing packages I was able to install the strider npm.

strider@1.6.0-pre.2

@knownasilya
Copy link
Member

@dligthart I would not recommend installing strider with -g, because usually there are issues with permissions on linux systems that prevent node from installing those packages properly. The preferred solution is to clone the repository, if you can.

The other solution is here: #650 (comment), which will fix your global installs.

@knownasilya
Copy link
Member

Closing, since this is really a duplicate of #650.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants