internal/modules/cjs/loader.js:613
throw err;
^e:
Error: Cannot find module 'chalk'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:611:15)
at Function.Module._load (internal/modules/cjs/loader.js:537:25)
at Module.require (internal/modules/cjs/loader.js:665:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/build/af2e373b-92c5-4880-88f6-6bdeed04cea0/build/check-versions.js:1:75)
at Module._compile (internal/modules/cjs/loader.js:736:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at tryModuleLoad (internal/modules/cjs/loader.js:568:12)
at Function.Module._load (internal/modules/cjs/loader.js:560:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-light-bootstrap-dashboard@1.0.0 build: node build/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-light-bootstrap-dashboard@1.0.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! /tmp/npmcache.ZotDd/_logs/2019-01-28T18_28_13_175Z-debug.log
-----> Build failed
`
Am i missing something?
I am trying to test the project in a heroku or scalingo app, but in both services i get an error while it build.
Cannot find module chalk
,The problem is that if i put
chalk
in thedependencies
ofpackage.json
then the error persist but with another dependencies likeCannot find module opn
orCannot find module express
but all of these are in devDependenciesI have not touched the default build of the project, just installed some aditional dependencies.
this is the log on scalingo build
` <-- Start deployment of erp-web --> Fetching source code -----> Creating runtime environment
-----> Installing binaries engines.node (package.json): >= 4.0.0 engines.npm (package.json): >= 3.0.0
-----> Restoring cache Skipping cache restore (not-found) -----> Building dependencies Installing node modules (package.json + package-lock) added 82 packages from 60 contributors and audited 9353 packages in 4.024s found 15 vulnerabilities (10 low, 1 moderate, 3 high, 1 critical) run
npm audit fix
to fix them, ornpm audit
for details Running buildinternal/modules/cjs/loader.js:613 throw err; ^e: Error: Cannot find module 'chalk' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:611:15) at Function.Module._load (internal/modules/cjs/loader.js:537:25) at Module.require (internal/modules/cjs/loader.js:665:17) at require (internal/modules/cjs/helpers.js:20:18) at Object. (/build/af2e373b-92c5-4880-88f6-6bdeed04cea0/build/check-versions.js:1:75)
at Module._compile (internal/modules/cjs/loader.js:736:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at tryModuleLoad (internal/modules/cjs/loader.js:568:12)
at Function.Module._load (internal/modules/cjs/loader.js:560:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-light-bootstrap-dashboard@1.0.0 build:
node build/build.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-light-bootstrap-dashboard@1.0.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! /tmp/npmcache.ZotDd/_logs/2019-01-28T18_28_13_175Z-debug.log -----> Build failed ` Am i missing something?