React Pro npm install


Topic: React Pro npm install

Ron Lepine pro asked 7 years ago

Getting this on the downloaded distribution.   { "status": 1, "file": "C:/source/vcprojects/react-pro/dist/scss/core/_mixins.scss", "line": 215, "column": 15, "message": "Functions may not be defined within control directives or other mixins.", "formatted": "Error: Functions may not be defined within control directives or other mixins.n on line 215 of dist/scss/core/_mixins.scssn>> @function set-notification-text-color($color) {nn --------------^n" }

Ron Lepine pro answered 7 years ago

Uninstalled 4.x and installed 3.4.2 and it works. Thanks

arooly pro answered 7 years ago

============================================================================================ When I follow the instructions from link it works fine. https://mdbootstrap.com/react/react-bootstrap-getting-started/ ============================================================================================ I get exact the same error when I run yarn start on downloaded package,  MDB Pro version 4.2 also when I clone the pro I get error. yarn run v1.5.1 $ yarn run sass-compile && concurrently --kill-others "yarn run sass-compile --watch" "yarn run webpack" $ node-sass dist/scss -o dist/css { "status": 1, "file": "C:/Users/alex/Desktop/ReactJS/mdb-react-pro-dw/dist/scss/core/_mixins.scss", "line": 215, "column": 15, "message": "Functions may not be defined within control directives or other mixins.", "formatted": "Error: Functions may not be defined within control directives or other mixins.n on line 215 of dist/scss/core/_mixins.scssn>> @function set-notification-text-color($color) {nn --------------^n" } error An unexpected error occurred: "Command failed. Exit code: 1 Command: C:\WINDOWS\system32\cmd.exe Arguments: /d /s /c node-sass dist/scss -o dist/css Directory: C:\Users\alex\Desktop\ReactJS\mdb-react-pro-dw

Mikołaj Smoleński staff answered 7 years ago

Hello, Please install the following package as a dependency and let us know if the problem still exists: "node-sass": "^ 3.4.2"   Regards

Ron Lepine pro commented 7 years ago

Uninstalled 4.x and installed 3.4.2 and it works. Thanks

arooly pro answered 7 years ago

So far I was not able to make it work: changed in package.json in "devDependencies": from  "node-sass": "^4.7.2", to “node-sass”: “^ 3.4.2” this did not work. Then run npm uninstall node-sass and install npm install node-sass@3.4.2 this did not work Can you give a step by step explanation please.

Ron Lepine pro answered 7 years ago

What I did was npm uninstall node-sass --save npm install node-sass@3.4.2 --save          

arooly pro commented 7 years ago

Thank you Ron, unfortunately this is not working for me. I am on Windows 10 Pro I reinstall node with latest version follow your procedure is just giving errors.

Mikołaj Smoleński staff commented 7 years ago

We've just updated our MDB package and the problem should be fixed. Please update Your project and let us know if everything is working as You expected.

gtb pro commented 7 years ago

Same operating system for me and I had that same bug. When I tried the re-install it failed. The first thing that looks like an error was: Cannot download "https://github.com/sass/node-sass/releases/download/v3.4.2/win32-x64-57_binding.node": This was in response to it trying to run node scripts/install.js. Consequently there are a series of errors checking for Python. It errors with Error: Can't find Python executable "C:Program FilesPython36python.EXE", you can set the PYTHON env variable. That is despite the fact that Python most definitely exists at that location.

arooly pro commented 7 years ago

Thank you Mikolaj the new MDB Package is compiling and running without errors.

arooly pro answered 7 years ago

Thank you Mikolaj the new MDB Package is compiling and running without errors.
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No