error ~node_modules/node-sass: Command failed Exit code: 1 Command: node scripts/build.js when running rails new application

Kamidesu
Exit code: 1
Command: node scripts/build.js
Arguments: 
Directory: ~/workspace/testest/node_modules/node-sass
Output:
Building: ~/.nvm/versions/node/v15.4.0/bin/node ~/workspace/testest/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (~workspace/testest/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (~workspace/testest/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! command "~.nvm/versions/node/v15.4.0/bin/node" "~workspace/testest/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd ~workspace/testest/node_modules/node-sass
gyp ERR! node -v v15.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1

Really have no idea what actually happens. I don't know when this happened (I built a lot of rails apps for my study but had no problem before) but just recently noticed.

Fortune Ekeruo

Make sure you have python installed on your machine.

On your terminal RUN which python

It should return your python location path that looks something like

/usr/local/bin/python

Then run

npm config set python </usr/local/bin/python>

OR

just RUN export PYTHON="$(which python3)"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Linker command failed with exit code 1 error

From Dev

ImageMagick compare: exit code 1 when spawned from Node.js, but exit code 0 when run from the command line

From Dev

Node Child Process Exec Command Failed with error code 1

From Dev

Error when building to device - error: linker command failed with exit code 1 (use -v to see invocation)

From Dev

Compile Error: linker command failed with exit code 1

From Dev

Swift: error: linker command failed with exit code 1

From Dev

clang: error: linker command failed with exit code 1 (Xcode 8.2.1)

From Dev

Cordova - Error: cmd: Command failed with exit code 1

From Dev

linker command failed with exit code 1 when link object files

From Dev

When added Sparkle Framework to the project Error: linker command failed with exit code 1 (use -v to see invocation)

From Dev

got error when building project: linker command failed with exit code 1

From Dev

when running easy_install PIL, I got the error: Setup script exited with error: command 'cc' failed with exit status 1

From Dev

when running easy_install PIL, I got the error: Setup script exited with error: command 'cc' failed with exit status 1

From Dev

Error: Command failed with exit code ENOENT

From Dev

Error: Command failed with exit code ENOENT

From Dev

Flow : Error Command failed with exit code 2

From Dev

linker command failed with exit code 1

From Dev

C: linker command failed with exit code 1

From Dev

Xcode linker command failed with exit code 1

From Dev

C: linker command failed with exit code 1

From Dev

linker command failed with exit code 1 - Xcode

From Dev

Cordova - Error code 1 for command | Command failed for

From Dev

Execute bash command in Node.js and get exit code

From Dev

node js Exit status 8, error code 0 running on mac

From Dev

Error "Command failed with exit code 66" running ios simulator on meteor app

From Dev

build failed with error 'file not found' and 'linker command failed with exit code 1 '

From Dev

Code Sign Error - Command /usr/bin/codesign failed with exit code 1

From Dev

command/usr/bin/codesign failed with exit code 1- code sign error

From Dev

Unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1 in Jenkins

Related Related

  1. 1

    Linker command failed with exit code 1 error

  2. 2

    ImageMagick compare: exit code 1 when spawned from Node.js, but exit code 0 when run from the command line

  3. 3

    Node Child Process Exec Command Failed with error code 1

  4. 4

    Error when building to device - error: linker command failed with exit code 1 (use -v to see invocation)

  5. 5

    Compile Error: linker command failed with exit code 1

  6. 6

    Swift: error: linker command failed with exit code 1

  7. 7

    clang: error: linker command failed with exit code 1 (Xcode 8.2.1)

  8. 8

    Cordova - Error: cmd: Command failed with exit code 1

  9. 9

    linker command failed with exit code 1 when link object files

  10. 10

    When added Sparkle Framework to the project Error: linker command failed with exit code 1 (use -v to see invocation)

  11. 11

    got error when building project: linker command failed with exit code 1

  12. 12

    when running easy_install PIL, I got the error: Setup script exited with error: command 'cc' failed with exit status 1

  13. 13

    when running easy_install PIL, I got the error: Setup script exited with error: command 'cc' failed with exit status 1

  14. 14

    Error: Command failed with exit code ENOENT

  15. 15

    Error: Command failed with exit code ENOENT

  16. 16

    Flow : Error Command failed with exit code 2

  17. 17

    linker command failed with exit code 1

  18. 18

    C: linker command failed with exit code 1

  19. 19

    Xcode linker command failed with exit code 1

  20. 20

    C: linker command failed with exit code 1

  21. 21

    linker command failed with exit code 1 - Xcode

  22. 22

    Cordova - Error code 1 for command | Command failed for

  23. 23

    Execute bash command in Node.js and get exit code

  24. 24

    node js Exit status 8, error code 0 running on mac

  25. 25

    Error "Command failed with exit code 66" running ios simulator on meteor app

  26. 26

    build failed with error 'file not found' and 'linker command failed with exit code 1 '

  27. 27

    Code Sign Error - Command /usr/bin/codesign failed with exit code 1

  28. 28

    command/usr/bin/codesign failed with exit code 1- code sign error

  29. 29

    Unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1 in Jenkins

HotTag

Archive