ysmood / febone Goto Github PK
View Code? Open in Web Editor NEWMX FE project scaffolding helper
MX FE project scaffolding helper
error under linux platform with node version4.x or version 5.x.
my command is fe-bone/node_modules/.bin/mx-fe-bone.
here is the error.
ful-fs@^4.0.0 as soon as possible.
|
> [email protected] prepublish /home/bowman/fe-bone
> no build
/home/bowman/fe-bone/node_modules/nokit/bin/no.js:13
throw err;
^
TypeError: Cannot read property 'error' of undefined
at OptionManager.mergeOptions (/home/bowman/fe-bone/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:28)
at OptionManager.addConfig (/home/bowman/fe-bone/node_modules/babel-core/lib/transformation/file/options/option-manager.js:107:10)
at OptionManager.findConfigs (/home/bowman/fe-bone/node_modules/babel-core/lib/transformation/file/options/option-manager.js:168:35)
at OptionManager.init (/home/bowman/fe-bone/node_modules/babel-core/lib/transformation/file/options/option-manager.js:229:12)
at compile (/home/bowman/fe-bone/node_modules/babel-core/lib/api/register/node.js:117:22)
at normalLoader (/home/bowman/fe-bone/node_modules/babel-core/lib/api/register/node.js:199:14)
at Object.require.extensions.(anonymous function) [as .js] (/home/bowman/fe-bone/node_modules/babel-core/lib/api/register/node.js:216:7)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
npm ERR! Linux 3.19.0-26-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.3.2
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] prepublish: `no build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublish script 'no build'.
npm ERR! This is most likely a problem with the demo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! no build
npm ERR! You can get their info via:
npm ERR! npm owner ls demo
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/bowman/fe-bone/npm-debug.log
/home/bowman/fe-bone/node_modules/mx-fe-bone/node_modules/nokit/node_modules/yaku/lib/throw.js:3
throw err;
^
[object Object]
unhandledRejection { code: 1, signal: null }
awesome-typescript-loader 会一直报 Can't find module xxx 的问题,这个找了作者解决也不是特别积极,而且不止是这个问题,还存在其他问题。
我们改成用 https://github.com/TypeStrong/ts-loader 这个是微软官方推荐的,之前遇到的报的所有的错其实都是各种变量的重复定义。
原因就是 http://stackoverflow.com/questions/31322525/typescript-confusing-duplicate-identifier-error-message
其实是我们的用法有问题,需要在 tsconfig.json 里加上 exclude: [ "node_modules" ]
这样就没问题了
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs"
},
"exclude": [
"node_modules"
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.