Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Installing on plesk #2674

Closed
mjmnagy opened this issue May 22, 2019 · 4 comments
Closed

Installing on plesk #2674

mjmnagy opened this issue May 22, 2019 · 4 comments

Comments

@mjmnagy
Copy link

mjmnagy commented May 22, 2019

Hi,

Ive been looking online for a solution to installing node-sass on my plesk server. I read that this is kind of a no no as this should not be done on a production server(dont care - not a live site).

I have uploaded the documents via bitbucket and click the NPM install button. The result is the failure below:

3822 verbose stack Error: node-sass@4.12.0 install: `node scripts/install.js`
3822 verbose stack spawn ENOENT
3822 verbose stack     at ChildProcess.<anonymous> (/opt/plesk/node/9/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
3822 verbose stack     at ChildProcess.emit (events.js:180:13)
3822 verbose stack     at maybeClose (internal/child_process.js:936:16)
3822 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
3823 verbose pkgid node-sass@4.12.0
3824 verbose cwd /var/www/vhosts/mjmnagy.info/app
3825 verbose Linux 3.10.0-862.9.1.el7.x86_64
3826 verbose argv "/opt/plesk/node/9/bin/node" "/opt/plesk/node/9/bin/npm" "install"
3827 verbose node v9.10.1
3828 verbose npm  v5.6.0
3829 error file sh
3830 error code ELIFECYCLE
3831 error errno ENOENT
3832 error syscall spawn
3833 error node-sass@4.12.0 install: `node scripts/install.js`
3833 error spawn ENOENT
3834 error Failed at the node-sass@4.12.0 install script.
3834 error This is probably not a problem with npm. There is likely additional logging output above.
3835 verbose exit [ 1, true ]

I attempted to login to the server using SSH but for the life of me couldn't figure out how to install it.

Using SSH, i navigated to where node is install (/opt/plesk/node/7/bin/) trying 6/7/8 and then running npm. i always got unrecognized command.

I then realized that the version i have of node-sass was higher than the node version install on the server(9.10.1)

What do i need to do to be able to install the module?

@xzyfer
Copy link
Contributor

xzyfer commented May 22, 2019 via email

@mjmnagy
Copy link
Author

mjmnagy commented May 22, 2019

https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md ?

Yes.
Im still unable to install the module. Plesk is becoming more of a hassle than its worth

@xzyfer
Copy link
Contributor

xzyfer commented May 22, 2019 via email

@mjmnagy
Copy link
Author

mjmnagy commented May 22, 2019

Hi,

i was unsure of how i could run the command as plesk actually just has the button to install them. I added a script into my package.json "install": "npm i --unsafe-perms" and it installed

THANKS

@mjmnagy mjmnagy closed this as completed May 22, 2019
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
A deprecation for the old behaviour landed in sass#2302. This PR removes
the deprecation warning for the old behaviour, and starts parsing
4 and 8 digit hex values as Colors.

Looks like we had support for 8 digit hex colors for a while but
somehow 4 digit support was missed.

Spec sass/sass-spec#1273

Fixes sass#2674
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants