Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spm 无法build含有normalize.css的项目 #155

Open
nomandia opened this issue Oct 26, 2015 · 0 comments
Open

spm 无法build含有normalize.css的项目 #155

nomandia opened this issue Oct 26, 2015 · 0 comments

Comments

@nomandia
Copy link

我仿照了这个官方例子
http://spmjs.io/documentation/css-and-template
spm build 时提示
/home/common/install/nodejs/node-v4.1.1-linux-x64/lib/node_modules/spm/node_modules/father/lib/package.js:197 throw e; ^
Error: normalize.css not found that required by index.css
at tryFile (/home/common/install/nodejs/node-v4.1.1-linux-x64/lib/node_modules/spm/node_modules/father/lib/file.js:158:9)
at Function.requireFile as require
at requireFile (/home/common/install/nodejs/node-v4.1.1-linux-x64/lib/node_modules/spm/node_modules/father/lib/package.js:192:17)
at /home/common/install/nodejs/node-v4.1.1-linux-x64/lib/node_modules/spm/node_modules/father/lib/package.js:180:15
at Array.forEach (native)
at lookupDeps (/home/common/install/nodejs/node-v4.1.1-linux-x64/lib/node_modules/spm/node_modules/father/lib/package.js:154:4)
at SubClass. (/home/common/install/nodejs/node-v4.1.1-linux-x64/lib/node_modules/spm/node_modules/father/lib/package.js:119:7)
at Array.forEach (native)
at SubClass.Class.create._parseFiles (/home/common/install/nodejs/node-v4.1.1-linux-x64/lib/node_modules/spm/node_modules/father/lib/package.js:117:34)
at SubClass.Class.create._parse (/home/common/install/nodejs/node-v4.1.1-linux-x64/lib/node_modules/spm/node_modules/father/lib/package.js:98:10)

我的package.json
{
"name": "main-style",
"version": "1.0.0",
"spm": {
"dependencies": {
"normalize.css": "3.0.1"
},
"main": "index.css"
}
}
/* index.css */
@import url('normalize.css');
@import url('./a.css');

// a.css
body {background: red;}
请问这个是什么问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant