App won't rebuild packages


#1

My app (ambitious-fisherman) was working fine yesterday. After the scheduled maintenance, I rolled back my project to yesterday, and I got the following error:

module.js:549

    throw err;

    ^


Error: Cannot find module 'express'

    at Function.Module._resolveFilename (module.js:547:15)

    at Function.Module._load (module.js:474:25)

    at Module.require (module.js:596:17)

    at require (internal/module.js:11:18)

at Object.<anonymous> (/app/index.js:5:15)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

I’ve gotten this error multiple times before, and in the past, I have fixed it by clearing out node_modules, refreshing the app, then triggering a package rebuild. I went to follow these steps this time and it won’t rebuild my package. This is what I see in console after restarting my app with a change to my package.json:

node v8.11.4, npm 5.6.0

Installing...

npm WARN Invalid name: "Kakuhou Surgeon"

npm WARN app No description

npm WARN app No repository field.

npm WARN app No README data

npm WARN app No license field.


up to date in 0.057s

Total install time: 852ms


module.js:549

    throw err;

    ^


Error: Cannot find module 'express'

    at Function.Module._resolveFilename (module.js:547:15)

    at Function.Module._load (module.js:474:25)

    at Module.require (module.js:596:17)

    at require (internal/module.js:11:18)

at Object.<anonymous> (/app/index.js:5:15)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

My package.json file has a license field and my app has a README file, and I’m not sure how “Kakuhou Surgeon” is an invalid name. I don’t have a repository or description because I don’t have this app on github. Please help me because I have no idea what to do.

UPDATE 5h after original post:
The error I’m getting in console has gotten worse. Now, whenever I restart the app after making a change to the package.json, I get this in console:

node v8.11.4, npm 5.6.0

Installing...

npm WARN deprecated snekfetch@4.0.4: use node-fetch instead

npm WARN deprecated snekfetch@3.6.4: use node-fetch instead

npm WARN tar Unknown system error -122: Unknown system error -122, write

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/chain.js'

npm WARN tar Unknown system error -122: Unknown system error -122, write

npm WARN tar Unknown system error -122: Unknown system error -122, write

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/map.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/chunk.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/defaults.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/clamp.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/mod.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/clone.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/compare-arrays.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/cloneDeep.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/some.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/cloneDeepWith.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/abs-round.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/to-int.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/cloneWith.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/collection.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/abs-floor.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/commit.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/zero-fill.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/compact.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/moment-d30432dd/src/lib/utils/is-date.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/concat.js'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/cond.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/conforms.js'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/conformsTo.js'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/constant.js'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/lodash-69176935/core.js'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/minimist-f71f0f7c/package.json'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/minimist-f71f0f7c/LICENSE'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/minimist-f71f0f7c/index.js'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/minimist-f71f0f7c/.travis.yml'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/example'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/minimist-f71f0f7c/readme.markdown'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/ms-51a8a50e/package.json'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/ms-51a8a50e/index.js'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/ms-51a8a50e/license.md'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar Unknown system error -122: Unknown system error -122, open '/app/node_modules/.staging/ms-51a8a50e/readme.md'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/minimist-f71f0f7c/test'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/moment-d30432dd/src/locale'

npm ERR! cb() never called!


npm ERR! This is an error with npm itself. Please report this error at:

npm ERR!     <https://github.com/npm/npm/issues>


npm ERR! A complete log of this run can be found in:

npm ERR!     /tmp/npm-cache/8.11.4/_logs/2018-10-09T04_26_02_237Z-debug.log


module.js:549

    throw err;

    ^


Error: Cannot find module 'express'

    at Function.Module._resolveFilename (module.js:547:15)

    at Function.Module._load (module.js:474:25)

    at Module.require (module.js:596:17)

    at require (internal/module.js:11:18)

at Object.<anonymous> (/app/index.js:5:15)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)


module.js:549

    throw err;

    ^


Error: Cannot find module 'express'

    at Function.Module._resolveFilename (module.js:547:15)

    at Function.Module._load (module.js:474:25)

    at Module.require (module.js:596:17)

    at require (internal/module.js:11:18)

at Object.<anonymous> (/app/index.js:5:15)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

I’m sorry but this is just frustrating because my app was working just fine until the maintenance earlier today and I still can’t get my app back online.

I just rolled back my project and I’m back at this error:

node v8.11.4, npm 5.6.0

Installing...

npm WARN deprecated snekfetch@4.0.4: use node-fetch instead

npm WARN deprecated snekfetch@3.6.4: use node-fetch instead

npm WARN discord.js@11.4.2 requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.

npm WARN Kakuhou-Surgeon@1.0.8 No repository field.


npm ERR! path /app/node_modules/extsprintf

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/app/node_modules/extsprintf' -> '/app/node_modules/.extsprintf.DELETE'

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent 


npm ERR! A complete log of this run can be found in:

npm ERR!     /tmp/npm-cache/8.11.4/_logs/2018-10-09T04_43_29_820Z-debug.log

UPDATE 6h after original post:
It works fine when I run the app locally. I am only experiencing problems running the app on Glitch. And now I’m back to the long error included in my last update.


#2

It sounds like your package.json file has a name field that has a value that contains a space, which isn’t valid. Try removing or replacing the space with -.


#3

I just replaced the space with a “-” and got this in console:

node v8.11.4, npm 5.6.0

Installing...

npm WARN deprecated snekfetch@4.0.4: use node-fetch instead

npm WARN deprecated snekfetch@3.6.4: use node-fetch instead

npm WARN discord.js@11.4.2 requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.

npm WARN discord.js@11.4.2 requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.

npm WARN Kakuhou-Surgeon@1.0.8 No repository field.


npm ERR! path /app/node_modules/cookie

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/app/node_modules/cookie' -> '/app/node_modules/.cookie.DELETE'

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent 


npm ERR! A complete log of this run can be found in:

npm ERR!     /tmp/npm-cache/8.11.4/_logs/2018-10-08T23_37_43_350Z-debug.log


module.js:549

    throw err;

    ^


Error: Cannot find module 'express'

    at Function.Module._resolveFilename (module.js:547:15)

    at Function.Module._load (module.js:474:25)

    at Module.require (module.js:596:17)

    at require (internal/module.js:11:18)

at Object.<anonymous> (/app/index.js:5:15)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

Update 7h after original post:
The problem seems to have fixed itself. My app is now running fine.


#4

My app was working perfectly fine before the update.


#5

Could you please share your project name? We’ll take a look at it.


#6

my project name is “ambitious-fisherman”


#7

Does anyone know the issue?


#8

App is fixed somehow.


#9

I’ve fixed it :slight_smile:


#10

Thank you so much!!!