Issue: when the required package is quoted by backtick, e.g. var express = require(`express`); in ES6 template string syntax, atom-npm-install will give a Nothing to install! message, instead of installing the required package. Changing the backticks to single quotes and atom-npm-install will recognize them and install correctly.
Steps to reproduce:
Create a new project folder and run npm init with default settings;
Create a new file in the created folder, and name it to index.js;
Paste the following code into index.js:
var express = require(`express`);
Save the file and run Npm Install: Save from Atom command palette.
Expected result: express installed and added to package.json
Actual result: A new panel opened in Atom that says npm install Nothing to install!
Issue: when the required package is quoted by backtick, e.g.
var express = require(`express`);
in ES6 template string syntax,atom-npm-install
will give a Nothing to install! message, instead of installing the required package. Changing the backticks to single quotes andatom-npm-install
will recognize them and install correctly.Steps to reproduce:
npm init
with default settings;index.js
;index.js
:Npm Install: Save
from Atom command palette.Expected result:
express
installed and added topackage.json
Actual result: A new panel opened in Atom that saysnpm install Nothing to install!
Environment: Atom 1.25.1 x64 npm-install 4.0.4