Autodesk-Forge / models.autodesk.io

Authorization and file translation demo in Node.js : Translates your 2D/3D models online for the Forge Viewer without programming at all
https://models.autodesk.io/
MIT License
51 stars 34 forks source link

Error when trying to deploy with Heroku #2

Closed danieljin closed 7 years ago

danieljin commented 7 years ago
-----> Node.js app detected
-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_ENV=production
       NODE_MODULES_CACHE=true
-----> Installing binaries
       engines.node (package.json):  >= 6.3.1
       engines.npm (package.json):   >= 3.10.3

       Resolving node version >= 6.3.1 via semver.io...
       Downloading and installing node 6.9.1...
       Resolving npm version >= 3.10.3 via semver.io...
       Downloading and installing npm 4.0.5 (replacing version 3.10.8)...
-----> Restoring cache
       Skipping cache restore (new runtime signature)
-----> Building dependencies
       Installing node modules (package.json)
       npm ERR! Linux 3.13.0-105-generic
       npm ERR! argv "/tmp/build_0539a276d608afcb69a30dfab3d4316b/cyrillef-models.autodesk.io-5efa967/.heroku/node/bin/node" "/tmp/build_0539a276d608afcb69a30dfab3d4316b/cyrillef-models.autodesk.io-5efa967/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_0539a276d608afcb69a30dfab3d4316b/cyrillef-models.autodesk.io-5efa967/.npmrc"
       npm ERR! node v6.9.1
       npm ERR! npm  v4.0.5
       npm ERR! code EREADFILE

       npm ERR! Error extracting /app/.npm/fs/0.0.0/package.tgz archive: ENOENT: no such file or directory, open '/app/.npm/fs/0.0.0/package.tgz'
       npm ERR!
       npm ERR! If you need help, you may report this error at:
       npm ERR!     <https://github.com/npm/npm/issues>

       npm ERR! Please include the following file with any support request:
       npm ERR!     /tmp/build_0539a276d608afcb69a30dfab3d4316b/cyrillef-models.autodesk.io-5efa967/npm-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:

       - Dangerous semver range (>) in engines.node
       https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

       Love,
       Heroku

 !     Push rejected, failed to compile Node.js app.
 !     Push failed
danieljin commented 7 years ago

Looks like the fs dependency should be removed

https://npmjs.statuspage.io/incidents/dw8cr1lwxkcr

cyrillef commented 7 years ago

was fixed in a recent post- thx for the report