バグ #587

Error: Cannot find module 'lodash'

山本 義治約9年前に追加. 約9年前に更新.

ステータス:進行中開始日:2015/11/19
優先度:通常期日:
担当者:山本 義治進捗 %:

0%

カテゴリ:サーバ環境構築作業時間の記録:-
対象バージョン:-

説明

[x-generation]$ npm start

> x-generation@0.0.0 start /Users/haltyt/project/x-generation
> NODE_ENV=test NODE_PATH=./config:./app/controllers nodemon ./bin/www

19 Nov 20:32:47 - [nodemon] v1.5.0
19 Nov 20:32:47 - [nodemon] to restart at any time, enter `rs`
19 Nov 20:32:47 - [nodemon] watching: *.*
19 Nov 20:32:47 - [nodemon] starting `node ./bin/www`
module.js:338
    throw err;
          ^
Error: Cannot find module 'lodash'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/haltyt/project/x-generation/node_modules/express-validator/lib/express_validator.js:2:9)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
19 Nov 20:32:47 - [nodemon] app crashed - waiting for file changes before starting...
^C
[x-generation]$ npm install
npm WARN deprecated mongoose-paginate@3.1.3: changed usage of paginate so that callback is always last, please adjust methods

> iconv@2.1.11 install /Users/haltyt/project/x-generation/node_modules/iconv
> node-gyp rebuild

  CC(target) Release/obj.target/libiconv/deps/libiconv/lib/iconv.o
  LIBTOOL-STATIC Release/iconv.a
  CXX(target) Release/obj.target/iconv/src/binding.o
  SOLINK_MODULE(target) Release/iconv.node

> bcrypt@0.8.5 install /Users/haltyt/project/x-generation/node_modules/bcrypt
> node-gyp rebuild

  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
  SOLINK_MODULE(target) Release/bcrypt_lib.node

> kerberos@0.0.4 install /Users/haltyt/project/x-generation/node_modules/mongoose-paginate/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/kerberos/lib/kerberos.o

> bson@0.2.22 install /Users/haltyt/project/x-generation/node_modules/mongoose-paginate/node_modules/mongoose/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bson/ext/bson.o
  SOLINK_MODULE(target) Release/bson.node
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/body-parser requires debug@'~2.2.0' but will load
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/debug,
npm WARN unmet dependency which is version 2.1.3
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/express requires debug@'~2.2.0' but will load
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/debug,
npm WARN unmet dependency which is version 2.1.3
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/morgan requires debug@'~2.2.0' but will load
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/debug,
npm WARN unmet dependency which is version 2.1.3
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/body-parser/node_modules/raw-body requires bytes@'2.1.0' but will load
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/body-parser/node_modules/bytes,
npm WARN unmet dependency which is version 1.0.0
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/express/node_modules/finalhandler requires debug@'~2.2.0' but will load
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/debug,
npm WARN unmet dependency which is version 2.1.3
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/express/node_modules/send requires debug@'~2.2.0' but will load
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/debug,
npm WARN unmet dependency which is version 2.1.3
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core requires bson@'~0.4' but will load
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/mongoose/node_modules/bson,
npm WARN unmet dependency which is version 0.3.2
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/mongoose/node_modules/mquery/node_modules/debug requires ms@'0.7.1' but will load
npm WARN unmet dependency /Users/haltyt/project/x-generation/node_modules/mongoose/node_modules/ms,
npm WARN unmet dependency which is version 0.1.0
object-assign@3.0.0 node_modules/object-assign

mongoose-unique-validator@0.4.1 node_modules/mongoose-unique-validator

validator@3.43.0 node_modules/validator

method-override@2.3.5 node_modules/method-override
├── methods@1.1.1
├── vary@1.0.1
├── parseurl@1.3.0
└── debug@2.2.0 (ms@0.7.1)

lodash@3.10.1 node_modules/lodash

cron@1.0.9 node_modules/cron
└── moment-timezone@0.3.1

express-paginate@0.0.8 node_modules/express-paginate
├── querystring@0.2.0
└── lodash@2.4.2

moment@2.10.6 node_modules/moment

redis@2.3.1 node_modules/redis
└── double-ended-queue@2.1.0-0

iconv@2.1.11 node_modules/iconv
└── nan@2.0.9

bcrypt@0.8.5 node_modules/bcrypt
├── bindings@1.2.1
└── nan@2.0.5

mongoose-paginate@3.1.3 node_modules/mongoose-paginate
├── async@0.9.2
└── mongoose@3.9.7 (regexp-clone@0.0.1, kareem@0.0.4, muri@0.3.1, sliced@0.0.5, hooks@0.3.2, mpromise@0.5.4, mpath@0.1.1, async@0.9.0, ms@0.1.0, mquery@1.0.0, mongodb@1.4.12)
[x-generation]$ npm start

> x-generation@0.0.0 start /Users/haltyt/project/x-generation
> NODE_ENV=test NODE_PATH=./config:./app/controllers nodemon ./bin/www

19 Nov 20:33:08 - [nodemon] v1.5.0
19 Nov 20:33:08 - [nodemon] to restart at any time, enter `rs`
19 Nov 20:33:08 - [nodemon] watching: *.*
19 Nov 20:33:08 - [nodemon] starting `node ./bin/www`
module.js:338
    throw err;
          ^
Error: Cannot find module './crc16_xmodem'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/haltyt/project/x-generation/node_modules/express-session/node_modules/crc/lib/index.js:9:16)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/haltyt/project/x-generation/node_modules/express-session/index.js:15:11)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
19 Nov 20:33:08 - [nodemon] app crashed - waiting for file changes before starting...

履歴

#1 山本 義治約9年前に更新

  • ステータス新規 から 進行中 に変更

$ rm -rf node_modules/*
$ npm install
$ npm start
で解決。
原因不明

他の形式にエクスポート: Atom PDF