「Error」タグアーカイブ

【Webpack】ERROR in multi html Module not found: Error: Cannot resolve module 'file' in

ERROR in multi html
Module not found: Error: Cannot resolve module 'file' in /Users/[username]/[repository]/[projectName]/src
@ multi html

confirm Error
type this one
webpack --display-error-details

see console

【Webpack】ERROR in multi html Module not found: Error: Cannot resolve module 'file' in
【Webpack】ERROR in multi html Module not found: Error: Cannot resolve module 'file' in

try npm install file

【Error】node-sassが怪しい | fs.js:856 return binding.readdir(pathModule._makeLong(path));でたら

久しぶりに動かしたプロジェクトでgulp叩いたらエラー出てた。
fs.js:856 return binding.readdir(pathModule._makeLong(path));
スタックトレース追っていったらnode-sassとかから出ているみたい。

ここ参考に、
やっていることはインストールしなおしているようなので、依存関係おかしくなっているのかな。。

npm i -D node-sass

tslintもエラー出てたら
npm i -D tslint

動いた。
これから腕まくりします。

でわーーーーーーーー

【Mac/Zip】解決!エラー2 ファイルまたはディレクトリがありません??そんなわけない。ダウンロードしたフォルダが解凍/展開できない場合

【Mac/zip】解決!エラー2 ファイルまたはディレクトリがありません??そんなわけない。ダウンロードしたフォルダが解凍/展開できない場合

森田賢二が毎日24時に更新するブログ。武骨日記。です
武骨日記

MacでZipを解凍しようとした際に。上記のようなエラーが出た場合の解決方法。
あるときダブルクリックで解凍/展開できない。。で画面に
「""に展開できません。エラー2 ファイルまたはディレクトリがありません。」てなる。

【Mac】エラー2 ファイルまたはディレクトリがありません??いやいやそんなわけない。。ダウンロードしたフォルダが解凍/展開できない場合
【Mac】エラー2 ファイルまたはディレクトリがありません??ダウンロードしたフォルダが解凍/展開できない場合

続きを読む

【TypeScript】sh: tsc: command not found (npm run build時)

npm run buildした際にこういうのでたら

sh: tsc: command not found

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

npm ERR! Darwin 14.3.0
npm ERR! argv "/usr/local/Cellar/node/6.2.2/bin/node" "/usr/local/bin/npm" "run" "tsc"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! an2_ts_playgrond@1.0.0 tsc: `tsc -p .`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the an2_ts_playgrond@1.0.0 tsc script 'tsc -p .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the an2_ts_playgrond package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc -p .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs an2_ts_playgrond
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls an2_ts_playgrond
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm ERR! /Users/No51/Desktop/Git/angu2_type/an2_ts_playgrond/npm-debug.log
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

npm ERR! Darwin 14.3.0
npm ERR! argv "/usr/local/Cellar/node/6.2.2/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! an2_ts_playgrond@1.0.0 build: `npm run tsc && npm run browserify`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the an2_ts_playgrond@1.0.0 build script 'npm run tsc && npm run browserify'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the an2_ts_playgrond package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run tsc && npm run browserify
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs an2_ts_playgrond
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls an2_ts_playgrond
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm ERR! /Users/No51/Desktop/Git/angu2_type/an2_ts_playgrond/npm-debug.log
[an2_ts_playgrond]

--------------------------

sh: tsc: command not found

これ。
tscがコマンドでパス通っていない可能性大
npm install tsc

をやってみてください。
npm のグローバルのパスが通っていればうまくいくはずです。

【Angular2_TypeScriptのtsconfig】error TS5023: Unknown compiler option 'moduleResolution'. とsh: browserify: command not found

build時に
error TS5023: Unknown compiler option 'moduleResolution'.
のようなエラー出たら
tsconfig.json。
moduleResolutionはモジュールを読み込むとき使うもの。

もしどこかから貼り付けただけのtsconfigなら多分初期化されてもいいとおもうので、下記のこちらをぺっとやるとうまくいきます。
https://github.com/angular/ts-quickstart/blob/master/tsconfig.json

moduleResolutionっていうのが何かのバージョンとうまくいっていない模様。何かは調査ちう
取り急ぎ。

sh: browserify: command not found

npm i -g browserify
してください