2013 年 11 月に wintersmith とサイトを構築しました。http://powma.com で公開中です。
私はそれに戻ってきますが、それは構築されていません:-{
手を汚してもかまいませんが、どこから始めればよいかわかりません。次のエラーが表示されます。
error Error loading plugin './node_modules/wintersmith-coffee/': Cannot find module './plugin'
助言がありますか?
ありがとう!
マイク
アップデート
これは、coffeescript がコンパイルされていないためです。
グローバルにインストールしましたが、役に立ちませんでした。
$ sudo npm install -g coffee-script
手動でコンパイルし、他のエラーに移動しました。何が欠けているかについての提案はありますか?
$ coffee -c plugin.coffee
これが私のconfig.jsonです:
{
"locals":
{ "url": "http://localhost:8080"
, "title": "Powma"
, "subTitle": "Linking you to technology"
, "motto": "We build exceptions sites and applications to connect people to products, services, and each other."
, "owner": "Michael Cole"
, "profilePicture": "/static/img/profile-professional.jpg"
, "inlineSpriteMaxBytes" : 10000
},
"views": "./views",
"plugins":
[ "./node_modules/wintersmith-coffee/"
, "./node_modules/wintersmith-stylus/"
],
"require": {
"moment": "moment",
"_": "underscore",
"typogr": "typogr"
},
"jade": {
"pretty": true
},
"markdown": {
"smartLists": true,
"smartypants": true
},
"paginator": {
"perPage": 3
}
}
そして package.json:
{
"name": "Powma-com",
"version": "0.1.1",
"private": true,
"engines": {
"node": "0.10.17"
},
"dependencies": {
"moment": "2.0.x",
"underscore": "1.5.x",
"typogr": "0.5.x",
"wintersmith": "2.0.x",
"wintersmith-stylus": "git://github.com/MichaelJCole/wintersmith-stylus.git#master",
"wintersmith-coffee": "0.2.x",
"express": "3.4.x",
"sendgrid": "~0.3.0-rc.1.7",
"express-validator": "~0.8.0",
"underscore-express": "0.0.4"
}
}
これは私が使用している新しい開発用ラップトップであるため、問題の一部である可能性があります。
問題を回避しましたが、修正されませんでした。coffeescript を手動でコンパイルする必要は本当にありますか?
ありがとう!