nodeclub icon indicating copy to clipboard operation
nodeclub copied to clipboard

make build报错

Open elvisxiao opened this issue 8 years ago • 3 comments

node版本: v0.12.7 npm版本:2.11.3

loader-builder版本信息为: "name": "loader-builder", "version": "2.1.0",

具体报错信息: @Elvi ➜ nodeclub git:(master) ✗ make build /Users/elvis/code/nodeclub/node_modules/loader-builder/lib/builder.js:131 item.min = ${dirname}/${basename}.${hashed}${extname}; ^ SyntaxError: Unexpected token ILLEGAL at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) 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. (/Users/elvis/code/nodeclub/node_modules/loader-builder/bin/builder:6:15) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) make: *** [build] Error 1

elvisxiao avatar Apr 15 '16 09:04 elvisxiao

请升级 node 版本。

XGHeaven avatar Apr 15 '16 11:04 XGHeaven

clone一下代码 ,make test,日志

root@110513:/home/github/nodeclub# make test
npm WARN deprecated [email protected]: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN optional dep failed, continuing [email protected]
Killed
make: *** [install] Error 137

make test-cov 日志

root@110513:/home/github/nodeclub# make test-cov
npm WARN unmet dependency /home/github/nodeclub/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/yargs/node_modules/cliui requires wordwrap@'0.0.2' but will load
npm WARN unmet dependency /home/github/nodeclub/node_modules/istanbul/node_modules/wordwrap,
npm WARN unmet dependency which is version 1.0.0
module.js:327
    throw err;
    ^

Error: Cannot find module '/home/github/nodeclub/node_modules/.bin/istanbul'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3
make: *** [test-cov] Error 1

make build 日志

root@110513:/home/github/nodeclub# make build
module.js:327
    throw err;
    ^

Error: Cannot find module 'lodash/lang/isFunction'
  at Function.Module._resolveFilename (module.js:325:15)
  at Function.Module._load (module.js:276:25)
  at Module.require (module.js:353:17)
  at require (internal/module.js:12:17)
  at Object.<anonymous> (/home/github/nodeclub/node_modules/loader-builder/node_modules/babel-core/lib/api/node.js:14:29)
  at Module._compile (module.js:409:26)
  at Object.Module._extensions..js (module.js:416:10)
  at Module.load (module.js:343:32)
  at Function.Module._load (module.js:300:12)
  at Module.require (module.js:353:17)
  at require (internal/module.js:12:17)
  at Object.<anonymous> (/home/github/nodeclub/node_modules/loader-builder/node_modules/babel-core/index.js:1:80)
  at Module._compile (module.js:409:26)
  at Object.Module._extensions..js (module.js:416:10)
  at Module.load (module.js:343:32)
  at Function.Module._load (module.js:300:12)
  at Module.require (module.js:353:17)
  at require (internal/module.js:12:17)
  at Object.<anonymous> (/home/github/nodeclub/node_modules/loader-builder/lib/transform.js:8:13)
  at Module._compile (module.js:409:26)
  at Object.Module._extensions..js (module.js:416:10)
  at Module.load (module.js:343:32)
  at Function.Module._load (module.js:300:12)
  at Module.require (module.js:353:17)
  at require (internal/module.js:12:17)
  at Object.<anonymous> (/home/github/nodeclub/node_modules/loader-builder/lib/builder.js:6:17)
  at Module._compile (module.js:409:26)
  at Object.Module._extensions..js (module.js:416:10)
  at Module.load (module.js:343:32)
  at Function.Module._load (module.js:300:12)
  at Module.require (module.js:353:17)
  at require (internal/module.js:12:17)
  at Object.<anonymous> (/home/github/nodeclub/node_modules/loader-builder/bin/builder:6:15)
  at Module._compile (module.js:409:26)
  at Object.Module._extensions..js (module.js:416:10)
  at Module.load (module.js:343:32)
  at Function.Module._load (module.js:300:12)
  at Function.Module.runMain (module.js:441:10)
  at startup (node.js:139:18)
  at node.js:968:3

make: *** [build] Error 1

node 版本

root@110513:/home/github/nodeclub# node -v
v4.4.4

atjiu avatar May 18 '16 09:05 atjiu

[root@iZuf6emvef6hl5tlnsyupxZ nodeclub]# ls api bin controllers logs models package.json public views api_router_v1.js common History.md Makefile node_modules package-lock.json README.md web_router.js app.js config.js LICENSE middlewares oneapm.js proxy test [root@iZuf6emvef6hl5tlnsyupxZ nodeclub]# make build make: ./node_modules/loader-builder/bin/builder: Command not found make: *** [Makefile:50: build] Error 127 [root@iZuf6emvef6hl5tlnsyupxZ nodeclub]# node -v v10.24.0 [root@iZuf6emvef6hl5tlnsyupxZ nodeclub]# npm -v 6.14.11 [root@iZuf6emvef6hl5tlnsyupxZ nodeclub]#

这个啥错误,折腾了好久

shawnxiao94 avatar Jul 28 '21 09:07 shawnxiao94