Following something similar to this... http://stuart-85933.onmodulus.net/ and that exact one. Tried a bunch of things for an hour and I'm dying. Help please!
Thanks.
"Unable to connect to any application instances."
Here is my logs on modulus website
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ../../main
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs meteor-dev-bundle
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls meteor-dev-bundle
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /mnt/app/bundle/programs/server/npm-debug.log
Now using node v0.10.41 (npm v3.9.6)
Found package.json: ./bundle/programs/server/package.json
Running command: npm start
> meteor-dev-bundle#0.0.0 start /mnt/app/bundle/programs/server
> node ../../main
assert.js:93
throw new assert.AssertionError({
^
AssertionError: "undefined" === "function"
at wrapPathFunction (/mnt/app/bundle/programs/server/mini-files.js:77:10)
at Object.<anonymous> (/mnt/app/bundle/programs/server/mini-files.js:108:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/mnt/app/bundle/programs/server/boot.js:9:13)
at Module._compile (module.js:456:26)
npm ERR! Linux 3.13.0-92-generic
npm ERR! argv "node" "/mnt/app/.modulus/nvm/v0.10.41/bin/npm" "start"
npm ERR! node v0.10.41
npm ERR! npm v3.9.6
npm ERR! code ELIFECYCLE
npm ERR! meteor-dev-bundle#0.0.0 start: `node ../../main`
npm ERR! Exit status 8
Modulus is currently working on adding compatibility for some of the newer Meteor releases i.e. Meteor 1.4. More information about this error can be found in the issues noted below. You can see updates on this issue here:meteor github issue, meteor build runtime, demeteorizer github issue
Edit: There is a workaround if you are still having trouble, but it is a little lengthy. This workaround should work for any new version of Meteor that comes out, even versions that aren't working with the Meteor runtime yet.
Make sure the app runs locally
Install any unresolved modules
i.e. if you get this message when running locally:
Unable to resolve some modules:
XYZ ...
If you notice problems related to these missing modules, consider running:
meteor npm install --save XYZ
Run demeteorizer
$ npm install demeteorizer -g
$ demeteorizer
Change directory to .demeteorized/bundle/programs/server/
$ cd .demeteorized/bundle/programs/server/
Run npm install in that directory
$ npm install
Edit the package.json in that directory after running 'npm install' and specify the correct node engine: i.e. node 4.4.7
Change directory to root of the bundle
$ cd ../../
Make sure you are in the root of 'bundle,' and then zip the contents
$ pwd
/exampleDirectory/yourProject/.demeteorized/bundle
Zip contents of bundle
$ zip -r -X myProject.zip ./
Move that zip to the root of your project directory (or a non hidden folder)
Go to your project dashboard at my.modulus.io
a. Stop your project
b. Change runtime to node.js in the
'administration' panel
c. Confirm you have MONGO_URL and ROOT_URL
specified in environment variables
d. Go back to 'home' of project
dashboard, and upload / deploy the zip
Related
I'm getting the following issue all the time while going to run my project. Even after downgraded my node version to 8.4.0 (npm version 5.3.0) still getting the same issue. I know there are so many solutions given like after removing the node_modules to run npm cache clean --force and then again npm install but this solution is not working as well.
PFB, the error:
npm start
m> subhojits-components#0.0.1 start
/home/subhojit/Desktop/my_project
> node server/index
Unspecified environment, booting dev server
Booting dev server....
module.js:491
throw err;
^
Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:489:15)
at Function.Module._load (module.js:439:25)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at evalmachine.<anonymous>:40:20
at Object.<anonymous>
(/home/subhojit/Desktop/my_project/node_modules/express-
handlebars/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! subhojits-components#0.0.1 start: `node server/index`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the subhojits-components#0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
Please let me know if there are anymore solutions. Any help would be appreciated.
Note: I'm using graceful-fs version 4.0.0
hi please import the graceful-fs library
like
import {userDefinedName} from 'graceful-fs';
hope it will help you.
or Click On the below Link.
graceful-fs
I have seen this error on external Apple engine.
Uninstalling the currently active version of node.js with nvm
So uninstall npm:
nvm deactivate
nvm uninstall <<version>>
Install stable version
nvm install <<version>>
nvm install 10.15.3
Install Angular/Cli (exemple)
npm install #angular/cli
npm link #angular/cli
Wish, it works.
I'm seeing an error with npm when I try to build a VueJS application. I'm seeing this error inside of a build stage in GitLab CI. I haven't been able to find any mention of the error message. I have previously been able to run npm run build successfully and I haven't made any changes to the Vue application code, so I'm unsure what could be causing this error.
- Building for production...
ERROR Error: custom keyword definition is invalid: data.errors should be boolean
Error: custom keyword definition is invalid: data.errors should be boolean
at Ajv.addKeyword (/app/node_modules/ajv/lib/keyword.js:65:13)
at module.exports (/app/node_modules/ajv-errors/index.js:10:7)
at Object.<anonymous> (/app/node_modules/terser-webpack-plugin/node_modules/schema-utils/src/validateOptions.js:22:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! code#0.1.0 build: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the code#0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-02-09T22_32_54_384Z-debug.log
The command '/bin/sh -c npm run build' returned a non-zero code: 1
ERROR: Job failed: exit code 1
Here is what I have in my docker file that is used to build the Vue app:
# build stage
FROM node:10.14.2-jessie as build-stage
WORKDIR /app/
COPY frontend/package.json /app/
RUN npm cache verify
RUN npm install
COPY frontend /app/
RUN npm run build
https://github.com/webpack/webpack/issues/8768
If you use yarn
add below to package.json
"resolutions": {
"ajv": "6.8.1"
}
then run yarn install
if you use npm
npm uninstall ajv
npm install ajv#6.8.1
In the node-modules I renamed ajv folder to ajv1. Now I copied an older version of ajv folder into node-modules folder from some other installation. It worked.
Quick fix:
Go to the ajv dependency in your node_modules folder:
node_modules/ajv/lib/keyword.js
comment out the line 64 and 65 :
if (!validateDefinition(definition))
throw new Error('custom keyword definition is invalid: ' + this.errorsText(validateDefinition.errors));
and it should works without side effects.
I have tried to resolve this by reading other stack overflow entries before posting, but the same error message keeps showing up.
I am trying to run a Javascript program that integrates ReactJS. It worked for a while and every time I would type "npm start" it would automatically bring up the webpage template in the browser. Now it gives me the following error(s):
jMBP:project javen$ npm start
> react-box#0.1.0 start /Users/javen/Desktop/project
> node scripts/start.js
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'react-dev-utils/prompt'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/sland/Desktop/project/scripts/start.js:20:14)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-box#0.1.0 start: `node scripts/start.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-box#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/javen/.npm/_logs/2018-09-27T01_24_06_237Z-debug.log
I have the following installed:
node -v: v10.9.0
npm -v: 6.4.1
I have tried the following:
npm install --save-dev react-dev-utils
npm install -g npm#latest
rm -rf node_modules
npm install //this threw a lot of errors
In the package.json file, for react-dev-utils it says, "react-dev-utils": "^5.0.2" Also, I do not know if this matters, but in the process of trying fixing this, a package-lock.json file has shown up in my project folder. The "prompt" var the error is referring to is the start.js folder: var prompt = require('react-dev-utils/prompt');
I have read that downgrading to an older version of node can sometimes work. If this is the case, which version is best, and how do I do this? Any advice appreciated.
I think npm install --save-dev react-dev-utils commands generally solves the issue. If not then updating your configs to match the latest create-react-app will fix this issue.
I have been trying to run the lodash library on my system.Here is the link to the library .link to lodash github
. I forked the repo and then cloned it on my system .I ran npm install ad installed all the dependencies in the package.json by running npm install and it worked fine .After that i tried npm run build as shown on github page and I am getting this error .
module.js:549
throw err;
^
Error: Cannot find module '/home/satya/lodash/lib/main/build-dist.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lodash#4.17.4 build:main: `node lib/main/build-dist.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lodash#4.17.4 build:main script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
How do I resolve the above so that I can introduce console logs and start reading .
lodash's master branch is simply broken. From CONTRIBUTING.md:
🚧 Notice 🚧
Pardon the mess. The master branch is in flux while we
work on Lodash v5. This means things like npm scripts, which we
encourage using for contributions, may not be working. Thank you for
your patience.
Simply use the latest development branch, which is 4.17 as of now.
On another note, to understand which branches are under active development on any project on GitHub, go to https://github.com/<user or organization name>/<project name>/branches/active.
I trying to build production webpack of BitShares UI
https://github.com/bitshares/bitshares-ui
The issue is that webpack is not running in strict mode
I don't want to have to change the code though. Is there a way to force that webpack config is interpreted in strict mode so that I avoid this problem?
Step 13/19 : RUN npm run build
---> [Warning] Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
---> Running in 7cfc6910af6a
BitShares2-light#2.0.180108 build /build
cross-env NODE_ENV=production webpack --env.prod
/build/webpack.config.js:70
let outputDir = env.electron ? "electron" : env.hash ? `hash-history_${baseUrl.replace("/", "")}` : "dist";
^^^
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 Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at requireConfig (/build/node_modules/webpack/bin/convert-argv.js:97:18)
at /build/node_modules/webpack/bin/convert-argv.js:104:17
at Array.forEach (native)
npm ERR! Linux 4.13.0-26-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! BitShares2-light#2.0.180108 build: `cross-env NODE_ENV=production webpack --env.prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the BitShares2-light#2.0.180108 build script 'cross-env NODE_ENV=production webpack --env.prod'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the BitShares2-light package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production webpack --env.prod
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs BitShares2-light
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls BitShares2-light
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /build/web/npm-debug.log
The command '/bin/sh -c npm run build' returned a non-zero code: 1
danielcastaneda#kwan-0080:~/WORK/BitPESO/bitshares-docker/build$
Please check your nodejs version.
BitShares-UI depends node Node.js, and version 8+ is required.
On Ubuntu and OSX, the easiest way to install Node is to use the Node Version Manager.
To install NVM for Linux/OSX, simply copy paste the following in a terminal:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
nvm install v9
nvm use v9
After this run npm run build