1
我對AWS非常陌生我開始探索AWS文檔,想到如何從NodeJS應用程序連接AWS sdk,因爲我已經安裝了npm aws-lib,如下所示。無法「npm install aws-lib」
你能幫我解決這個問題嗎?
輸出的npm-debug.log
appss-MacBook-Pro-2:NodeJS apps$ npm install aws-lib [email protected] node_modules/aws-lib ├── [email protected] ├── [email protected] └── [email protected] appss-MacBook-Pro-2:NodeJS apps$ npm test npm ERR! Darwin 15.0.0 npm ERR! argv "node" "/usr/local/bin/npm" "test" npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! path /Users/apps/Desktop/IOT/NodeJS/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! enoent ENOENT, open '/Users/apps/Desktop/IOT/NodeJS/package.json' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm ERR! Please include the following file with any support request: npm ERR! /Users/apps/Desktop/IOT/NodeJS/npm-debug.log appss-MacBook-Pro-2:NodeJS apps$
如下:
0 info it worked if it ends with ok 1 verbose cli [ 'node', '/usr/local/bin/npm', 'test' ] 2 info using [email protected] 3 info using [email protected] 4 verbose stack Error: ENOENT, open '/Users/apps/Desktop/IOT/NodeJS/package.json' 4 verbose stack at Error (native) 5 verbose cwd /Users/apps/Desktop/IOT/NodeJS 6 error Darwin 15.0.0 7 error argv "node" "/usr/local/bin/npm" "test" 8 error node v0.12.7 9 error npm v2.11.3 10 error path /Users/apps/Desktop/IOT/NodeJS/package.json 11 error code ENOENT 12 error errno -2 13 error enoent ENOENT, open '/Users/apps/Desktop/IOT/NodeJS/package.json' 13 error enoent This is most likely not a problem with npm itself 13 error enoent and is related to npm not being able to find a file. 14 verbose exit [ -2, true ]
謝謝,現在我明白了。 – RakeshKalwa