scott113341 / npm-install-version

Installs node modules to versioned or custom directories.
MIT License
56 stars 11 forks source link

Unexpected character '#' #46

Open FabianoLothor opened 5 years ago

FabianoLothor commented 5 years ago

Error:

./node_modules/npm-install-version/node_modules/npm/bin/npm-cli.js 1:0
Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
> #!/usr/bin/env node
| ;
|

My Code:

import niv from 'npm-install-version';

niv.install('react@15.6.2');
niv.install('react@0.14.8');

const React15 = niv.require('react@15.6.2');
const React14 = niv.require('react@0.14.8');