我安裝了node.js,因爲我需要一種將我的javascript變量存儲到mysql數據庫(我使用phpmyadmin)的方法。試圖使用node.js,不斷收到錯誤
我得到這個錯誤,我只是不現在就做什麼吧:
C:\Users\Robin> npm install mysql
C:\Users\Robin
`-- [email protected]
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Robin\package.json'
npm WARN Robin No description
npm WARN Robin No repository field.
npm WARN Robin No README data
npm WARN Robin No license field.
我也輸入另一個命令(不記得是哪一個),它給我的列表看起來像用戶名和電子郵件帳戶。
我不知道我需要採取哪些步驟來成功安裝node.js並使其工作。我檢查了YouTube視頻的內容,但是那裏卻毫無價值。
所以我從scrath的問題是:我安裝了node.js,如何使它工作?
來自荷蘭的親切問候
他們是** ** WARN ING沒有錯誤...試試'NPM init'第一,創造一個'package.json' –
C:\用戶\羅賓> NPM的init 該實用程序將引導您創建一個package.json文件。 它只涵蓋最常見的項目,並嘗試猜測合理的默認值。 請參閱'npm help json'獲取這些字段的權威性文檔 以及它們的確切用途。 使用'npm install --save'隨後安裝一個軟件包, 將它作爲依賴項保存在package.json文件中。 隨時按^ C退出。 我越來越了! –
是的,我知道npm init的確感謝你,我建議你按照提示,而不是發佈你的電腦從現在開始的每一件小事:p –