Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows から Ubuntu 12.04 に Node.js コードを移行しています。コードを実行すると、「fs」にはメソッドが「存在しません」というエラーが発生します。コードは次のようになります
var fs = require('fs'); fs.exists ...
nodejs.org のドキュメントを確認しましたが、異なるプラットフォームでの API の違いに関する指示は見つかりませんでした。Ubuntu で Node.js を構成するのに何か欠けていましたか?
fs.existsノード 0.7.1 で追加されました。そのため、それより前にノードを使用している場合、その機能は使用できません。を使用してノードのバージョンをnode -v確認し、これを確認してください。
fs.exists
node -v
I have been developing a web application which has many documents (.pdf format) which must be embedded on the site. After doing a little research, there seem to