https://qiita.com/hosomichi/items/149b28c89a012ead26aa
上記を参考にWebアプリを作ろうと思いました。
macのターミナルで、
node main.jsを実行したかったのですが、よくわからないエラーになりました。
どうすればいいのでしょうか。。。。
node.js
1node main.js 2module.js:124 3 throw e; 4 ^ 5 6SyntaxError: Error parsing /Users/kurataryusei/node.js/node_modules/my_math/package.json: Unexpected token 7 in JSON at position 86 8 at JSON.parse (<anonymous>) 9 at readPackage (module.js:120:52) 10 at tryPackage (module.js:130:13) 11 at Function.Module._findPath (module.js:212:20) 12 at Function.Module._resolveFilename (module.js:536:25) 13 at Function.Module._load (module.js:468:25) 14 at Module.require (module.js:587:17) 15 at require (internal/module.js:11:18) 16 at Object.<anonymous> (/Users/kurataryusei/node.js/main.js:1:76) 17 at Module._compile (module.js:643:30) 18 19
ちなみに、package.jsonの中身はこちらです。
node.js
1{ 2 "name": "my_math", 3 "version": "0.0.0", 4 "description": "", 5 "main": "index.js", 6 "scripts": { 7 "test": "echo \"Error: no test specified\" && exit 1" 8 }, 9 "author": "", 10 "license": "ISC" 11} 12 13
助けてください。お願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/16 08:59
2018/01/16 09:01
2018/01/16 09:32
2018/01/16 09:44
2018/01/16 09:44