laverdet / node-fibers

Fiber/coroutine support for v8 and node.
MIT License
3.56k stars 224 forks source link

NPM install error for fibers #448

Closed weilies closed 3 years ago

weilies commented 3 years ago

I hit install error while execute npm i fibers in my angular project. $ node -v v12.14.1 $ npm -v 6.14.11

I deleted node_modules folder and package-lock.json, then try to re-install all the modules, then i hit with all sort of error in fibers.

package.json

{
  "name": "airworkz",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^11.0.8",
    "@angular/cdk": "^10.2.2",
    "@angular/common": "^11.0.8",
    "@angular/compiler": "^11.0.8",
    "@angular/core": "^11.0.8",
    "@angular/fire": "^6.0.2",
    "@angular/forms": "^11.0.8",
    "@angular/google-maps": "^10.1.0",
    "@angular/platform-browser": "^11.0.8",
    "@angular/platform-browser-dynamic": "^11.0.8",
    "@angular/router": "^11.0.8",
    "@firebase/firestore": "^1.15.4",
    "@firebase/logger": "^0.2.5",
    "@firebase/util": "^0.2.49",
    "@fullcalendar/angular": "^5.5.0",
    "@fullcalendar/core": "^4.4.2",
    "@fullcalendar/daygrid": "^5.5.0",
    "@fullcalendar/interaction": "^5.5.0",
    "@fullcalendar/timegrid": "^4.4.2",
    "@types/googlemaps": "^3.39.11",
    "@types/numeral": "0.0.28",
    "bufferutil": "^4.0.1",
    "chart.js": "^2.9.3",
    "compressorjs": "^1.0.7",
    "countries-list": "^2.5.5",
    "fibers": "^3.1.0",
    "file-saver": "^2.0.5",
    "firebase": "^7.22.1",
    "firebase-tools": "^8.12.1",
    "html-webpack-plugin": "^4.3.0",
    "jspdf": "^2.1.1",
    "jspdf-autotable": "^3.5.13",
    "moment": "^2.27.0",
    "ngx-image-compress": "^11.0.3",
    "ngx-json-viewer": "^2.4.0",
    "ngx-papaparse": "^5.0.0",
    "ngx-webstorage": "^5.0.0",
    "node-forge": "^0.10.0",
    "node-sass": "^4.14.1",
    "npm-check-updates": "^10.2.5",
    "pdfmake": "^0.1.68",
    "primeflex": "^1.1.1",
    "primeicons": "^4.0.0-rc.2",
    "primeng": "^11.1.0",
    "quill": "^1.3.7",
    "rxjs": "~6.6.3",
    "tslib": "^2.0.0",
    "utf-8-validate": "^5.0.2",
    "xlsx": "^0.16.9",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^0.1100.6",
    "@angular/cli": "^11.0.6",
    "@angular/compiler-cli": "~11.0.8",
    "@types/jasmine": "~3.6.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^12.11.1",
    "codelyzer": "^6.0.0",
    "jasmine-core": "~3.6.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~5.1.1",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~2.1.0",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "protractor": "~7.0.0",
    "ts-node": "~8.3.0",
    "tslint": "~6.1.0",
    "typescript": "~4.0.3"
  }
}

command line

$ npm i fibers
npm WARN deprecated fsevents@2.1.3: "Please update to latest v2.3 or v2.2"
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

> fibers@3.1.1 install /home/weilies/apps/airworkz/node_modules/fibers
> node build.js || nodejs build.js

make: Entering directory '/home/weilies/apps/airworkz/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:68:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
  Handle<String> NewLatin1String(Isolate* isolate, const char* string) {
  ^~~~~~
  rand_r
../src/fibers.cc:72:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
  Handle<String> NewLatin1Symbol(Isolate* isolate, const char* string) {
  ^~~~~~
  rand_r
../src/fibers.cc:94:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
  Handle<Object> NewInstance(Isolate* isolate, Local<Function> fn, int argc, Local<Value> argv[]) {
  ^~~~~~
  rand_r
../src/fibers.cc:104:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
  Handle<Number> ToNumber(Local<Value> value) {
.... MANY MORE and i skip to last few lines
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'`
Alpine users please run: `sudo apk add python make g++`
sh: nodejs: command not found
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/rollup/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/watchpack-chokidar2/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @angular/compiler-cli@11.0.9 requires a peer of @angular/compiler@11.0.9 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-webstorage@5.0.0 requires a peer of @angular/common@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-webstorage@5.0.0 requires a peer of @angular/core@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-webstorage@5.0.0 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! fibers@3.1.1 install: `node build.js || nodejs build.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fibers@3.1.1 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!     /home/weilies/.npm/_logs/2021-02-06T03_43_03_506Z-debug.log
weilies@cloudshell:~/apps/airworkz$

my detail log file is in google drive https://drive.google.com/drive/folders/1RLoiloQbC76pnF2uHk6B0vKeaVes9_Lj

Thanks for the support.

raghava1147 commented 3 years ago

@weilies can you please provide the soultion for this issue.?