お世話になります。yarnを使いnode-sassをインストールしようとしたところ、
エラーが発生いたしました。
ターミナル上での各種操作の内容、package.jsonファイルの中身は以下の通りです。
yarnのバージョン
yarn -vで 1.15.2 と出ます。
package.jsonの中身
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build-css": "node-sass --include-path scss scss/style.scss css/style.css",
"watch-css": "nodemon -e scss -x "npm run build-css""
},
"author": "",
"license": "ISC",
"devDependencies": {
"node-sass": "^4.9.4",
"nodemon": "^1.18.4"
}
}
ターミナルで上のpackage.jsonと同じ箇所へ移動した上で、下記のコマンドを実行
yarn add node-sass
ターミナルでのエラーの含む内容:
yarn add v1.15.2
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] ???? Resolving packages...
[2/4] ???? Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz: Request failed "404 Not Found"".
info If you think this is a bug, please open a bug report with the information provided in "/Applications/MAMP/htdocs/test-1/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
原因の特定に至らず、もし何かお気付きの点があれば教えていただけますと助かります。
何卒よろしくお願いいたします。
**
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。