2016-12-15 33 views
0

我得到這個錯誤,我真的不能明白:錯誤而搬起sails.js項目

info: Starting app... 

/Users/Sammy/Projects/MyProject/node_modules/mongodb/lib/utils.js:98 
    process.nextTick(function() { throw err; }); 
           ^

Error: Cannot find module '../fixtures' 
    at Function.Module._resolveFilename (module.js:470:15) 
    at Function.Module._load (module.js:418:25) 
    at Module.require (module.js:498:17) 
    at require (internal/module.js:20:19) 
    at /Users/Sammy/Projects/MyProject/config/bootstrap.js:23:31 
    at wrapper (/Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/lodash/index.js:3592:19) 
    at applyInOriginalCtx (/Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/utils/normalize.js:421:80) 
    at wrappedCallback (/Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/utils/normalize.js:324:18) 
    at success (/Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/switchback/lib/normalize.js:33:31) 
    at _switch (/Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/switchback/lib/factory.js:58:28) 
    at returnResults (/Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/query/finders/basic.js:392:9) 
    at /Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/query/finders/basic.js:272:16 
    at /Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/query/finders/operations.js:83:7 
    at /Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/async/lib/async.js:52:16 
    at Object.async.forEachOf.async.eachOf (/Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/async/lib/async.js:236:30) 
    at Object.async.forEach.async.each (/Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/async/lib/async.js:209:22) 
    at /Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/query/finders/operations.js:436:11 
    at /Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/query/finders/operations.js:574:5 
    at /Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/async/lib/async.js:52:16 
    at Object.async.forEachOf.async.eachOf (/Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/async/lib/async.js:236:30) 
    at Object.async.forEach.async.each (/Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/async/lib/async.js:209:22) 
    at module.exports._buildChildOpts (/Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/query/finders/operations.js:464:9) 
    at module.exports._execChildOpts (/Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/query/finders/operations.js:432:8) 
    at /Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/query/finders/operations.js:81:10 
    at wrapper (/Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/lodash/index.js:3592:19) 
    at applyInOriginalCtx (/Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/utils/normalize.js:421:80) 
    at wrappedCallback (/Users/Sammy/Projects/MyProject/node_modules/waterline/lib/waterline/utils/normalize.js:324:18) 
    at success (/Users/Sammy/Projects/MyProject/node_modules/waterline/node_modules/switchback/lib/normalize.js:33:31) 

是否有水線辦?模塊是否丟失?什麼是「燈具」模塊?

由於提前, 薩米

回答

1

它看上去就像是從您node_modules文件夾中丟失。

嘗試做一個NPM緩存明確和一個乾淨的NPM安裝

在項目文件夾中運行:

npm cache clear && rm -rf node_modules && npm install 

希望它可以幫助

+0

@sammy請,如果這幫助,你可以請標記爲解決?它可能會幫助其他人來這裏。 –