0
私はBrackets.ioエディタ用の拡張モジュールを開発中です。私はtrie-search
、npm
モジュールを読み込みたいです。モジュールが存在しません。Brackets.io拡張モジュールのエラー
私は拡張子のローカルディレクトリにcd
編その後、実行します。
npm install trie-search
を延長コードは次のように見ています
define(function (require, exports, module) {
"use strict";
var AppInit = brackets.getModule("utils/AppInit"),
CodeHintManager = brackets.getModule("editor/CodeHintManager"),
LanguageManager = brackets.getModule("language/LanguageManager"),
TrieSearch = require('trie-search'), // throws an error
MGfuncHint = require('text!mg-func.txt');
これはmodule does not exist
を言って、エラーがスローされます。どのようにモジュールをロードできますか?