Click here to Skip to main content
15,396,019 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I moved the n-api of centos running without any problem to Ubuntu and built it, an error occurred.

I ran:
npm init
npm install node-gyp
npm install --save bindings
npm run build

What I have tried:

"name": "node",
"version": "1.0.0",
"main": "index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"install": "node-gyp rebuild"
"author": "lee",
"license": "ISC",
"gypfile": true,
"dependencies": {
"bindings": "^1.5.0"
npm ERR! Linux 5.4.0-109-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2

npm ERR! missing script: build
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https:"" npm="" issues="">

npm ERR! Please include the following file with any support request:
npm ERR! /home/worlture/node/npm-debug.log

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900