3
我刪除〜/ package.json,現在我試圖安裝這SwitchyOmega。 的第一步工作正常我應該如何解決npm運行deps /開發工作後刪除package.json
# Install node and npm first (make sure npm --version > 2.0), then:
sudo npm install -g grunt-cli bower
但下一步
# In the project folder:
cd omega-build
npm run deps # This runs npm install in every module.
npm run dev # This runs npm link to aid local development.
給我這個錯誤
npm ERR! path /Users/Rahimi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/Rahimi/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Rahimi/.npm/_logs/2017-09-17T04_55_31_851Z-debug.log
我該如何重新安裝我的package.json? – Mahi
你可以訪問你在[問題]中提到的鏈接(https://github.com/FelisCatus/SwitchyOmega/blob/master/omega-build/package.json)。在'omega-build'文件夾裏面,你會得到'package.json'文件。把它放在你的本地倉庫中。這對你有用 – kgangadhar