質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

gulp

gulpは、Node.jsをベースとしたタスク自動化ツールの一つ。ストリームでファイルを処理することが特徴です。CSSプリプロセッサの使用時のコンパイルや、CSS・JavaScriptファイルの圧縮・結合などを自動的に行うことができます。

Q&A

解決済

1回答

960閲覧

gulpにてエラーが出て正常に動作してくれません

m_a_u_v_e

総合スコア22

npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

gulp

gulpは、Node.jsをベースとしたタスク自動化ツールの一つ。ストリームでファイルを処理することが特徴です。CSSプリプロセッサの使用時のコンパイルや、CSS・JavaScriptファイルの圧縮・結合などを自動的に行うことができます。

0グッド

0クリップ

投稿2020/02/05 08:51

他の人が作成したgulpの環境を自身のPC環境でnpm installを行い、
gulpとコマンドを打つとエラーが出て正常に動作してくれません。

package.jsonとgulpfile.jsとpackage-lock.jsonを提供してもらっています。

エラーは下記が出まして、エラー内容に従ってnpm rebuild node-sassと打ってみましてが、同じエラー内容が表示されます。
nodeのバージョンは8.9.3、gulpのバージョンは4.0で他の環境では正常に動くようです。
(当方はnodistで8.9.3のバージョンにしています。)

正しく動作するための解決案などご教示いただけますと幸いです。

Error: Missing binding D:\user0000\work\work000\work111\node_modules\node-sass\vendor\win32-x64-57\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x

Found bindings for the following environments:

  • Windows 64-bit with Node.js 6.x

This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to download the binding for your current environment.
at module.exports (D:\user0000\work\work000\work111\node_modules\node-sass\lib\binding.js:15:13)
at Object.<anonymous> (D:\user0000\work\work000\work111\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\user0000\work\work000\work111\node_modules\gulp-sass\index.js:187:21)

package.jsonは以下になります。

js

1{ 2 "name": "***", 3 "version": "1.0.0", 4 "description": "", 5 "main": "gulpfile.js", 6 "dependencies": { 7 "browser-sync": "2.26.3", 8 "gulp-connect-php": "^1.0.3", 9 "object-fit-images": "^3.2.4", 10 "php-include-html": "^1.3.1", 11 "pump": "^3.0.0" 12 }, 13 "devDependencies": { 14 "connect-ssi": "^1.1.1", 15 "del": "^3.0.0", 16 "gulp": "^4.0.0", 17 "gulp-autoprefixer": "^5.0.0", 18 "gulp-cached": "^1.1.1", 19 "gulp-changed": "^3.1.0", 20 "gulp-clean-css": "^3.10.0", 21 "gulp-concat": "^2.6.1", 22 "gulp-cssmin": "^0.2.0", 23 "gulp-imagemin": "^4.1.0", 24 "gulp-plumber": "^1.1.0", 25 "gulp-pug": "^4.0.1", 26 "gulp-rename": "^1.2.2", 27 "gulp-sass": "^3.1.0", 28 "gulp-uglify": "^3.0.1", 29 "imagemin-gifsicle": "^6.0.1", 30 "imagemin-mozjpeg": "^8.0.0", 31 "imagemin-pngquant": "^5.0.1", 32 "imagemin-svgo": "^7.0.0" 33 }, 34 "scripts": { 35 "test": "echo \"Error: no test specified\" && exit 1", 36 "start": "browser-sync start --server --files='./*.html, ./*.css, ./*js, ./*php' --tunnel" 37 }, 38 "author": "", 39 "license": "ISC", 40 "optionalDependencies": {} 41} 42

何卒宜しくお願い致します。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

Error: Missing binding D:\user0000\work\work000\work111\node_modules\node-sass\vendor\win32-x64-57\binding.node

ディレクトリ(またはファイル)が無い、と出てますよ。

$ tree node_modules/node-sass/vendor node_modules/node-sass/vendor └── win32-x64-57 └── binding.node

投稿2020/02/05 10:10

編集2020/02/05 10:10
technocore

総合スコア7209

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問