Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'node-sass' #3

Open
fveauvy opened this issue Aug 21, 2019 · 0 comments
Open

Error: Cannot find module 'node-sass' #3

fveauvy opened this issue Aug 21, 2019 · 0 comments

Comments

@fveauvy
Copy link

fveauvy commented Aug 21, 2019

Hello,

I got an issue while following the fast deploy app way.
When I press "Deploy app" I have an issue preventing me to push the app.
Below the log from Heroku :

-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false

-----> Installing binaries

   engines.node (package.json):  8.0
   engines.npm (package.json):   unspecified (use default)      

   Resolving node version 8.0...
   Downloading and installing node 8.0.0...
   Using default npm version: 5.0.0       

-----> Installing dependencies

   Installing node modules (package.json + package-lock)      

   > [email protected] install /tmp/build_f056e31c2aa6ecaed805119a8dc0b32f/node_modules/node-sass
   > node scripts/install.js       

   module.js:487
       throw err;
       ^       

   Error: Cannot find module 'sshpk'

       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> (/tmp/build_f056e31c2aa6ecaed805119a8dc0b32f/node_modules/request/node_modules/http-signature/lib/utils.js:4:13)
       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)       

   > [email protected] install /tmp/build_f056e31c2aa6ecaed805119a8dc0b32f/node_modules/fsevents
   > node install
   > [email protected] postinstall /tmp/build_f056e31c2aa6ecaed805119a8dc0b32f/node_modules/core-js

   > node scripts/postinstall || echo "ignore"       
   added 958 packages in 30.738s       

-----> Build

   Detected both "build" and "heroku-postbuild" scripts
   Running heroku-postbuild       

   > [email protected] heroku-postbuild /tmp/build_f056e31c2aa6ecaed805119a8dc0b32f
   > npm run build              

   > [email protected] build /tmp/build_f056e31c2aa6ecaed805119a8dc0b32f
   > gulp --production      

module.js:487
throw err;
^

Error: Cannot find module 'node-sass'
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. (/tmp/build_f056e31c2aa6ecaed805119a8dc0b32f/node_modules/gulp-sass/index.js:187:21)
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! [email protected] build: gulp --production
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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.yGDAL/_logs/2019-08-21T14_50_18_735Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] heroku-postbuild: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] heroku-postbuild 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.yGDAL/_logs/2019-08-21T14_50_18_749Z-debug.log
-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys       

   Some possible problems:       
   - A module may be missing from 'dependencies' in package.json
     https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies
 
   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant