idan-at / native-sizeof Goto Github PK
View Code? Open in Web Editor NEWA native package to quickly calculate a JS object size
A native package to quickly calculate a JS object size
I use [email protected]
and [email protected]
.
When I try to install the package (npm i native-sizeof
), it fails to do so:
npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm ERR! code 127
npm ERR! path /home/ts/git/itens/otto/controlserver/node_modules/native-sizeof
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build=false || npm run build
npm ERR! 404 status code downloading tarball https://github.com/idan-at/native-sizeof/releases/download/0.1.4/node-v93-linux-x64.tar.gz
npm ERR!
npm ERR! > [email protected] build
npm ERR! > neon build --release
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | linux | x64
npm ERR! node-pre-gyp WARN Using needle for node-pre-gyp https download
npm ERR! node-pre-gyp info check checked for "/home/ts/git/itens/otto/controlserver/node_modules/native-sizeof/native/index.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/idan-at/native-sizeof/releases/download/0.1.4/node-v93-linux-x64.tar.gz
npm ERR! node-pre-gyp http 404 https://github.com/idan-at/native-sizeof/releases/download/0.1.4/node-v93-linux-x64.tar.gz
npm ERR! node-pre-gyp ERR! install error
npm ERR! node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://github.com/idan-at/native-sizeof/releases/download/0.1.4/node-v93-linux-x64.tar.gz
npm ERR! node-pre-gyp ERR! stack at PassThrough.<anonymous> (/home/ts/git/itens/otto/controlserver/node_modules/node-pre-gyp/lib/install.js:142:27)
npm ERR! node-pre-gyp ERR! stack at PassThrough.emit (node:events:402:35)
npm ERR! node-pre-gyp ERR! stack at ClientRequest.<anonymous> (/home/ts/git/itens/otto/controlserver/node_modules/needle/lib/needle.js:538:9)
npm ERR! node-pre-gyp ERR! stack at Object.onceWrapper (node:events:510:26)
npm ERR! node-pre-gyp ERR! stack at ClientRequest.emit (node:events:390:28)
npm ERR! node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:623:27)
npm ERR! node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
npm ERR! node-pre-gyp ERR! stack at TLSSocket.socketOnData (node:_http_client:487:22)
npm ERR! node-pre-gyp ERR! stack at TLSSocket.emit (node:events:390:28)
npm ERR! node-pre-gyp ERR! stack at addChunk (node:internal/streams/readable:315:12)
npm ERR! node-pre-gyp ERR! System Linux 5.16.2-arch1-1
npm ERR! node-pre-gyp ERR! command "/home/ts/.nvm/versions/node/v16.13.2/bin/node" "/home/ts/git/itens/otto/controlserver/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
npm ERR! node-pre-gyp ERR! cwd /home/ts/git/itens/otto/controlserver/node_modules/native-sizeof
npm ERR! node-pre-gyp ERR! node -v v16.13.2
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.17.0
npm ERR! node-pre-gyp ERR! not ok
npm ERR! sh: line 1: neon: command not found
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ts/.npm/_logs/2022-01-26T09_56_29_569Z-debug.log
The thing is, it tries to download node-v93-linux-x64.tar.gz
, which (looking at the assets of v0.1.4
) does not exist.
One way to solve this is to create it, however, what’s the purpose of dividing the package by node
versions? Are there some incompatibilities? Or this way you can make the package more performant?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.