I was installing a framework called Botonic and i installed perfectly but when I run the
command “botonic new my Bot blank” I get a huge NPM ERR! When it's time to install my dependencies.
~Jhenriqueax🚀: botonic new myBot blank
✔ Downloading files...
✖ Installing dependencies...
Your message must be < 32kb. This is currently surfaced as a warning to allow clients to update. Versions released after August 1, 2018 will throw an error instead. Please update your code before then. {
event: 'Error Botonic CLI',
anonymousId: 87047954,
properties: {
platform: 'darwin',
arch: 'arm64',
timezone: 'America/Fortaleza',
timestamp: '2023-01-18T21:45:38.995Z',
is_tty: true,
framework_path: '/usr/local/lib/node_modules/#botonic/cli/lib',
system_path: '/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jhenriqueax/Development/flutter/bin:/Library/Apple/usr/bin',
node_version: 'v16.14.2',
botonic_cli_version: '0.20.2',
botonic_dependencies: [ [Array] ],
error_type: 'Installing dependencies: Error: Command failed: CXXFLAGS="--std=c++14" npm install\n' +
'npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated\n' +
Downgrade the node version to 14.16.1
If you're using nvm, try nvm install 14.16.1.
Then use nvm 14.16.1
Make sure you're npm version should be 6.14.12
Related
I can't start electron. "Error: error:0308010C:digital envelope routines::unsupported" appears
when typing npm run electron:serve
the error below appears:
project-plugins#0.1.0 electron:serve
vue-cli-service electron:serve
INFOStarting development server...
DONE Compiled successfully in 3002ms 17:26:56
App running at:
- Location: http://localhost:8080/
- Network: http://192.168.3.10:8080/
Note that the development build is not optimized.
To create a production build, run npm run build.
- Bundling main process...node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\allan\Downloads\Projects\curso-vue\vue-cli\projeto-plugins\node_modules\vue-cli-plugin-electron-builder\node_modules\webpack\lib\util\createHash. js:135:53)
at NormalModule._initBuildHash (C:\Users\allan\Downloads\Projects\curso-vue\vue-cli\projeto-plugins\node_modules\vue-cli-plugin-electron-builder\node_modules\webpack\lib\NormalModule.js: 417:16)
at handleParseError (C:\Users\allan\Downloads\Projects\curso-vue\vue-cli\projeto-plugins\node_modules\vue-cli-plugin-electron-builder\node_modules\webpack\lib\NormalModule.js:471: 10)
at C:\Users\allan\Downloads\Projects\curso-vue\vue-cli\projeto-plugins\node_modules\vue-cli-plugin-electron-builder\node_modules\webpack\lib\NormalModule.js:503:5
at C:\Users\allan\Downloads\Projects\curso-vue\vue-cli\projeto-plugins\node_modules\vue-cli-plugin-electron-builder\node_modules\webpack\lib\NormalModule.js:358:12
at C:\Users\allan\Downloads\Projects\curso-vue\vue-cli\projeto-plugins\node_modules\vue-cli-plugin-electron-builder\node_modules\loader-runner\lib\LoaderRunner.js:373: 3
at iterateNormalLoaders (C:\Users\allan\Downloads\Projects\curso-vue\vue-cli\projeto-plugins\node_modules\vue-cli-plugin-electron-builder\node_modules\loader-runner\lib\LoaderRunner.js: 214:10)
at Array.<anonymous> (C:\Users\allan\Downloads\Projects\curso-vue\vue-cli\projeto-plugins\node_modules\vue-cli-plugin-electron-builder\node_modules\loader-runner\lib\ LoaderRunner.js:205:4) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
I already tried to reinstall and install the latest node.
I already installed an old version of node that in theory worked, but it led to several other problems, so I prefer to solve this with the latest LTS node version.
and also tried to install openSSL and crypto-browserify module
There are two solutions:
Quick and Dirty
Downgrade to Node.js v16 but that exposes you to security threats that are better explained here: https://stackoverflow.com/a/73027407/20130767
Upgrade webpack to version 5 by editing your package-lock.json file.
Go into your package-lock.json file and change all version 4.x.x webpacks to 5.0.0. (ctrl f and search for "webpack": "4 to find all version 4 webpacks)
Delete node modules and reinstall using npm i
I had the same problem and the only thing that solved it was to uninstall node and install it again with version 16.12.0.
You can also do this with nvm (Node Version Manager).
> nvm install 16.12.0 // to install the version I wanted
> nvm use 16.12.0 // use the installed version
Link to node version 16.6.0: link.
Link of the nvm repository: link.
You can access all versions of Node here.
If you still can't do it, try running CMD as administrator.
I tried to install MathJax in GitBook with npm install mathjax#2.7.6.
$ npm install mathjax#2.7.6
npm WARN ml No description
npm WARN ml No repository field.
npm WARN ml No license field.
+ mathjax#2.7.6
updated 1 package and audited 1 package in 3.464s
found 0 vulnerabilities
I added the following codes to package.json.
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/mathjax/MathJax.git"
},
Now the situation is,
$ npm install mathjax#2.7.6
+ mathjax#2.7.6
updated 1 package and audited 1 package in 4.6s
found 0 vulnerabilities
However it raised the error if (args[ii] == null) throw missingRequiredArg(ii) while running gitbook install.
info: installing plugin "mathjax-pro"
info: install plugin "mathjax-pro" (*) from NPM with version 0.0.6
C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\node_modules\aproba\index.js:25
if (args[ii] == null) throw missingRequiredArg(ii)
^
Error: Missing required argument #1
at andLogAndFinish (C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\lib\fetch-package-metadata.js:31:3)
at fetchPackageMetadata (C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\lib\fetch-package-metadata.js:51:22)
at resolveWithNewModule (C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\lib\install\deps.js:490:12)
at C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\lib\install\deps.js:491:7
at C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\node_modules\iferr\index.js:13:50
at C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\lib\fetch-package-metadata.js:37:12
at addRequestedAndFinish (C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\lib\fetch-package-metadata.js:67:5)
at returnAndAddMetadata (C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\lib\fetch-package-metadata.js:121:7)
at pickVersionFromRegistryDocument (C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\lib\fetch-package-metadata.js:138:20)
at C:\Users\SU\.gitbook\versions\3.2.3\node_modules\npm\node_modules\iferr\index.js:13:50 {
code: 'EMISSINGARG'
}
How do I install MathJax in GitBook?
I followed the tutorials below for the installation of the tensorflow model:
https://flows.nodered.org/node/node-red-contrib-tf-model
https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md
Steps taken:
I first installed the #tensorflow/tfjs-node inside Node-RED directly by running the following code:
C:\Users\username\.node-red\node_modules> npm install #tensorflow/tfjs-node#1.4.0
Ran npm install under C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node:
C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node> npm install
Finally ran npm install node-red-contrib-tf-model in the same directory:
C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node> npm install node-red-contrib-tf-model
Error that occured:
npm WARN node-red-contrib-tf-model#0.1.11 requires a peer of #tensorflow/tfjs-node#^1.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN #tensorflow/tfjs-node#1.4.0 No license field.
I have installed the correct tfjs-node version, and so why does this error occur?
Edit: Tried installing the module straight from Node-RED itself and got the following
ERROR:The specified module could not be found.
C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node
When I checked the above directory it turns out that I do have the 'tfjs_binding.node'.
What am I doing wrong here? Can someone please help me out.
I am not able to use truffle or npm commands on powershell even though I have it installed, powershell hangs when I use npm init while truffle is not recognized by powershell at all. I have uninstalled and reinstalled truffle many times but to no avail.
For Npm I have no idea how to remove it, after typing the uninstall npm, I could still access its version.
Here is my npm version:
PS C:\Users\user> npm version
{ user: '1.0.0',
npm: '5.6.0',
ares: '1.10.1-DEV',
cldr: '31.0.1',
http_parser: '2.7.0',
icu: '59.1',
modules: '57',
nghttp2: '1.25.0',
node: '8.9.4',
openssl: '1.0.2n',
tz: '2017b',
unicode: '9.0',
uv: '1.15.0',
v8: '6.1.534.50',
zlib: '1.2.11' }
Hi i think it had to to wth your NPM cache which you should clean, during development
mine was corrupted, i had to clean it.
Moralso, from https://www.npmjs.com/package/node-powershell, do install your npm with npm i -S node-powershell.
It should do work.
I published a new version of my package (0.3.2) but it is not the latest one.
npm view give me:
{
'dist-tags': { latest: 0.3.1}
versions: [..., 0.3.2],
time: {..., '0.3.2': '2016-...'},
version: '0.3.1',
...
}
I get an NPM error:
"You cannot publish over the previously published version 0.3.2"
Because i didn't use npm publish (--tag latest) but npm publish --tag pkg#0.3.2, my version 0.3.2 is freezed on the NPM registry without being the latest one. NPM does not have any way to rollback, the only workaroud is to bump the version (0.3.3 in my case).