Closed seisdr closed 4 years ago
what's this
ameer@localhost:~/pdf.js$ npm install gulp-cli
/usr/local/lib/node_modules/npm/bin/npm-cli.js:87
let notifier = require('update-notifier')({pkg})
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
@seisdr it means you're using an ancient node version, and a too-new npm version for it. Upgrade node, or reinstall it and keep the older npm it comes with.
but I did download the least using apt and I did upgrade npm using npm
@seisdr do not ever install node or npm via apt. also, on old node versions, npm install -g npm
will break your node installation, because newer npms don't work on older nodes, and once npm is broken, you have to reinstall node entirely.
can I choice how many cores I want to use during build nodejs I can't use any other application as my ram is 2 gb
Binary download failed, trying source.
grep: /proc/cpuinfo: Input/output error
Can not determine how many core(s) are available, running in single-threaded mode.
Please report an issue on GitHub to help us make nvm run faster on your computer!
Local cache found: ${NVM_DIR}/.cache/src/node-v14.5.0/node-v14.5.0.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v14.5.0/node-v14.5.0.tar.xz
you can ignore it I'll compile it during night
but I have i386 arch and it's not supported ? but I'm still building it
here's a list if files into pdf.js
here's a output when I attempt to install dependencies
here's a output when I try to update npm
I don't even know if it's updated or not and here's a log
npm-debug.log