
Node.js エラーで実行できない
Node.jsをWindows10で初めて使う者です。
以下エラーになり実行が出来ません
C:\WINDOWS\system32>node index.js internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'C:\WINDOWS\system32\index.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
このサイトに、似た質問がありましたが自分のとは違うみたいで
調べても解決策と思われるのが見つからず質問させて頂きました。
解決策をご存知の方いらっしゃれば教えて頂けると嬉しいです。
よろしくおねがいします
※使用したコード
『https://qiita.com/miso_develop/items/bdcf15489b069ba1fa61』
const config = { restApiId: "xxxxxxxx", resourceId: "xxxxxxxx", httpMethod: "ANY", port: 3000, } const execSync = require('child_process').execSync const ngrok = require('ngrok') const main = async () => { const ngrokUrl = await ngrok.connect(config.port) console.log(ngrokUrl) execSync(`aws apigateway put-integration --rest-api-id ${config.restApiId} --resource-id ${config.resourceId} --http-method ${config.httpMethod} --type HTTP_PROXY --integration-http-method ${config.httpMethod} --uri ${ngrokUrl}`) execSync(`aws apigateway create-deployment --rest-api-id ${config.restApiId} --stage-name prod`) console.log(`https://${config.restApiId}.execute-api.ap-northeast-1.amazonaws.com/prod`) } main()
※試したこと(覚えている限り)
npm install -g npm-install-missing
npm install googleapis@39 --save
npm install commander@2.9
回答1件
あなたの回答
tips
プレビュー