14
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Node.js:[Error: Cannot find module 'ejs']の対処方法

Last updated at Posted at 2018-03-29

#はじめに
初歩的なエラーかと思いますが、私が初心者のため備忘録を含め記録として残したいと思います。

#結論:ターミナル上でnmp initを実行後npm install -save ejsを実行する。

ターミナル
Error: Cannot find module 'ejs'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/kojikenn 1/Desktop/mini_board/app.js:3:13)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

とありましたので、検索をしましたが下記の記事は私のケースには当てはまりませんでした。
該当する方もいらっしゃると思料されますから、念のためにURLを掲載いたします。

https://stackoverflow.com/questions/44585980/com-apple-webkit-webcontent-drops-113-error-could-not-find-specified-service/44623268#44623268

#encodeURL.addingPercentEncoding(withAllowedCharacters: NSCharacterSet.urlQueryAllowed)を使用することで解決。

solved
let encodeURL = String(format: "https://www.amazon.co.jp/gp/search?ie=UTF8&keywords=hoge")
let itemUrl = encodeURL.addingPercentEncoding(withAllowedCharacters: NSCharacterSet.urlQueryAllowed)

ご参考になれば幸いです。

14
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?