node.js errno 1如何解决它?

时间:2018-12-02 17:02:06

标签: node.js npm

(internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/home/travis/build/HabitRPG/habitica/node_modules/karma/lib/utils/json-utils.js:2:21)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/home/travis/build/HabitRPG/habitica/node_modules/karma/lib/server.js:14:19)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! habitica@4.74.6 client:unit: `cross-env NODE_ENV=test karma start test/client/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the habitica@4.74.6 client:unit 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!     /home/travis/.npm/_logs/2018-12-02T13_03_07_644Z-debug.log
The command "npm run $TEST" exited with`enter code here` 1.

我该如何解决?

package.josn有什么问题?

npm -v:6.4.1

请...有人帮助我...

internal / modules / cjs / loader.js:582         犯错         ^     错误:找不到模块“ flatted / cjs”         在Function.Module._resolveFilename

0 个答案:

没有答案