Category: node.js

ValueError: invalid mode: 'rU' while trying to load binding.gyp 0

ValueError: invalid mode: 'rU' while trying to load binding.gyp

Traceback (most recent call last): File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\gyp_main.py", line 51, in <module> sys.exit(gyp.script_main()) ^^^^^^^^^^^^^^^^^ File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 670, in script_main return main(sys.argv[1:]) ^^^^^^^^^^^^^^^^^^ File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 662, in main return gyp_main(args) ^^^^^^^^^^^^^^ File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line...

gyp verb check python checking for Python executable 0

gyp verb check python checking for Python executable "python2" in the PATH

error C:\dev\react-scss-jest-typescript\node_modules\sass-jest\node_modules\node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: C:\dev\react-scss-jest-typescript\node_modules\sass-jest\node_modules\node-sass Output: Building: C:\Program Files\nodejs\node.exe C:\dev\react-scss-jest-typescript\node_modules\sass-jest\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...

On Node.js versions 0

On Node.js versions

The Latest Nodes Releases for Majors Versions Node 13, Node 12, Node 11, Node 10 https://nodejs.org/dist/latest-v13.x/ ../ docs/ 14-Apr-2020 16:47 - win-x64/ 14-Apr-2020 16:35 - win-x86/ 14-Apr-2020 16:35 - SHASUMS256.txt 14-Apr-2020 18:27 3147 SHASUMS256.txt.asc...

../binding.cc:28:17: fatal error: zmq.h: No such file or directory 0

../binding.cc:28:17: fatal error: zmq.h: No such file or directory

../binding.cc:28:17: fatal error: zmq.h: No such file or directory Solution CentOS : sudo yum install -y zeromq-devel Debian : sudo apt-get install libzmq3-dev Full log of error make: Entering directory `/home/frank/product/js/services/node_modules/zmq/build' CXX(target) Release/obj.target/zmq/binding.o ../binding.cc:28:17: fatal...

readv() failed (104: Connection reset by peer) while reading upstream 0

readv() failed (104: Connection reset by peer) while reading upstream

[error] 1528#1528: *599 readv() failed (104: Connection reset by peer) while reading upstream, client: 10.65.11.207, server: localhost, request: "POST /apis/v2/system/upgrade/upload HTTP/1.1", upstream: "http://127.0.0.1:8085/apis/v2/system/upgrade/upload", host: "10.65.11.219", referrer: "https://10.65.11.219/admin/update" Understanding: This message "(XXX: Connection reset by...

NodeJS v8 0

NodeJS v8 "err": {"message": "fsReadFileAsync(...).then(...).then(...).catch(...).done is not a function",

After upgrading code and libraries, you might run into "err":{"message":"fsReadFileAsync(...).then(...).then(...).catch(...).done is not a function", An example erroneous code const fsReadFileAsync = util.promisify(fs.readFile.bind(fs)); const fsWriteFileAsync = util.promisify(fs.writeFile.bind(fs)); // First apply changes to fstab fsReadFileAsync(this._fstabFilename, "utf8")...

npm not found when under sudo 0

npm not found when under sudo

[dev@squarepants www]$ sudo npm install -g bbb sudo: npm: command not found Solution You have probably like me installed node with nvm (node version manager). This installs node locally for the user and root...

Install a node workstation with nvm 0

Install a node workstation with nvm

1 NVM 1.1 Install nvm Note: Get the latest command from https://github.com/creationix/nvm $> curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh | bash $> export NVM_DIR="$HOME/.nvm" $> [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm 1.2 Verify it...