ChristianKohler / NpmIntellisense

Visual Studio Code plugin that autocompletes npm modules in import statements
MIT License
154 stars 43 forks source link

Fixed 'Unexpected token '/'' in package.json #27

Closed elderfo closed 7 years ago

elderfo commented 7 years ago

Fixed for issue when running npm install on a new clone that would cause:

bash-3.2$ npm install npm ERR! Darwin 16.3.0 npm ERR! argv "/usr/local/Cellar/node/7.2.1/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v7.2.1 npm ERR! npm v3.10.9 npm ERR! file <...>/dev/NpmIntellisense/package.json npm ERR! code EJSONPARSE npm ERR! Failed to parse json npm ERR! Unexpected token '/' at 23:9 npm ERR! // "onCommand:npm-intellisense.import" npm ERR! ^ npm ERR! File: <...>/dev/NpmIntellisense/package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! This is not a bug in npm. npm ERR! Tell the package author to fix their package.json file. JSON.parse npm ERR! Please include the following file with any support request: npm ERR! <...>/dev/NpmIntellisense/npm-debug.log

ChristianKohler commented 7 years ago

Thank you for fixing the package json. I fixed it as well on the master so I will close this pr.