srs / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
867 stars 210 forks source link

node-sass dependency - 'node' is not recognized as an internal [...] #341

Open ezylot opened 5 years ago

ezylot commented 5 years ago

I get this error after adding "node-sass": "^4.12.0" to my package.json and running npmInstall.

I really want to do my build without having to install a node on my system, so locally installing node and adding it to the PATH is not a good solution for me (Regardless, I already tried it with a local installation and it works like expected that way)

> Task :nodeSetup > Task :npmSetup SKIPPED > Task :npmInstall

> node-sass@4.12.0 install C:\Users\fschoeffl\Documents\Projects\Microfluicid-Systems-Simulator\node_modules\node-sass > node scripts/install.js

'node' is not recognized as an internal or external command, operable program or batch file. npm WARN microfluicid-systems-simulator@1.0.0 No description npm WARN microfluicid-systems-simulator@1.0.0 No license field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.12.0 install: node scripts/install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.12.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\fschoeffl\AppData\Roaming\npm-cache_logs\2019-07-02T12_57_09_889Z-debug.log

> Task :npmInstall FAILED

I use the id ("com.moowork.node") version "1.3.1" plugin in my gradle file, with following configuration

node { version = "10.16.0" download = true }

It worked pretty well so far with things like "typescript": "^3.5.1", "spectrum-colorpicker": "^1.8.0", "eslint": "^5.16.0", ... so there seems to be something wrong with node-sass

Someone has experienced something familiar?

klexzi commented 3 years ago

currently facing the same issue on a windows machine