After following the instructions to install it (from what i can tell)
I am getting this error when trying to install the software:
C:\zenbot\zenbot>npm install
enter code herenpm ERR! path C:\zenbot\zenbot\node_modules\forex.analytics
npm ERR! code EISGIT
npm ERR! git C:\zenbot\zenbot\node_modules\forex.analytics: Appears to be a git
repo or submodule.
npm ERR! git C:\zenbot\zenbot\node_modules\forex.analytics
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Spork\AppData\Roaming\npm-cache\_logs\2017-12-29T22_35_31_
500Z-debug.log
Afterwards, I am getting this error when trying to run the software after completing the install:
C:\zenbot\zenbot>node zenbot.js
module.js:538
throw err;
^
Error: Cannot find module './build/Release/analytics.node'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous>
(C:\zenbot\zenbot\node_modules\forex.analytics\index.js:1:79)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
Since the inclusion of forex.analytics, running on bare Windows is broken.
The recommended path is to either use the Bash and Linux subsystem option from Windows features, or run in a Docker container.
See: Update documentation for Windows users at GitHub.
Related
I'm trying to run Apify locally, after installing all the packages, creating the actor and running it I got this:
Warning: You are not logged in with your Apify Account. Some features like Apify Proxy will not work. Call "apify login" to fix that.
Run: npm start
> test2#0.0.1 start
> node main.js
/home/a/test2/node_modules/apify/build/configuration.js:91
const envKey = Configuration.ENV_MAP_REVERSED[key] ?? key;
^
SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/a/test2/node_modules/apify/build/events.js:10:25)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
npm ERR! code 1
npm ERR! path /home/a/test2
npm ERR! command failed
npm ERR! command sh -c node main.js
npm ERR! A complete log of this run can be found in:
npm ERR! /home/a/.npm/_logs/2022-02-08T18_28_58_177Z-debug.log
Error: npm exited with code 1
the version of npm is v12.22.5
Any ideas how to generate the correct config file? Thanks
You need Node.js 16+ for the latest SDK to work
Getting below error while "npm run build" on server.On local machine working fine. Getting 500 response on server
node version:8.0
npm version: 5.0.3
Error: Cannot find module 'has-flag'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous>
(/usr/share/../../../node_modules/postcss/node_modules/supports-color/index.js:2:15)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ***#0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ***#0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Try npm install --save has-flag. It looks like supports-color is requiring has-flag to be installed but it isn't. If you need to install any other packages you can just type npm install.
The above didn't work for me, but deleting my node_modules and dist folders and rerunning npm install did.
I cant seem to ran any commands against > npm including > npm help ,> npm uninstall or > npm upgrade
the full error is
module.js:339
throw err;
^
Error: Cannot find module 'lodash._basetostring'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_modules\lodash.pad\index.js:9:20)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
I cant run > npm install lodash._basetostring or npm anything
Tried reinstalling and running 'npm cache clean' but even that didn't work, so here's my solution:
Delete all files from, you may want to backup the files first but those are corrupted anyway.
<user profile directory>\AppData\Roaming\npm\node_modules
and then try running npm command, if this works then there's no need to reinstall, just install npm modules using
npm install -g <package names>
Otherwise uninstall node.js, empty above stated folder and then install node.js.
Don't forget to update npm
npm install npm#latest -g
I'm trying to install i18next-conv but, when I run sudo npm install i18next-conv -g, I get this error:
Error: Cannot find module 'readable-stream'
at Function._resolveFilename (module.js:337:11)
at Function._load (module.js:279:25)
at Module.require (module.js:359:17)
at require (module.js:375:17)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:3:48)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Module.require (module.js:359:17)
If you need help, you may report this log at:
<http://github.com/isaacs/npm/issues>
or email it to:
<npm-#googlegroups.com>
System Darwin 11.4.2
command "node" "/usr/local/bin/npm" "install" "i18next-conv" "-g"
cwd /Users/personalcomputer/Desktop
node -v v0.6.18
npm -v 1.3.5
Additional logging details can be found in:
/Users/personalcomputer/Desktop/npm-debug.log
not ok code undefined
not ok code 1
Can anyone tell me what can I do to install it?
Thanks!
I think this should be solved if you update node.js and possibly npm as well.
Note you can update npm with npm itself via the command:
sudo npm install -g npm
What I had to do was update node version from node web page
I'm trying to install i18next-conv but, when I run sudo npm install i18next-conv -g, I get this error:
Error: Cannot find module 'readable-stream'
at Function._resolveFilename (module.js:337:11)
at Function._load (module.js:279:25)
at Module.require (module.js:359:17)
at require (module.js:375:17)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:3:48)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Module.require (module.js:359:17)
If you need help, you may report this log at:
<http://github.com/isaacs/npm/issues>
or email it to:
<npm-#googlegroups.com>
System Darwin 11.4.2
command "node" "/usr/local/bin/npm" "install" "i18next-conv" "-g"
cwd /Users/personalcomputer/Desktop
node -v v0.6.18
npm -v 1.3.5
Additional logging details can be found in:
/Users/personalcomputer/Desktop/npm-debug.log
not ok code undefined
not ok code 1
Can anyone tell me what can I do to install it?
Thanks!
I think this should be solved if you update node.js and possibly npm as well.
Note you can update npm with npm itself via the command:
sudo npm install -g npm
What I had to do was update node version from node web page