You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/dimitarnestorov/.npm/_npx/8804/bin/browserslist-useragent-regexp: line 1: use strict: command not found
/Users/dimitarnestorov/.npm/_npx/8804/bin/browserslist-useragent-regexp: line 3: syntax error near unexpected token `ex'
/Users/dimitarnestorov/.npm/_npx/8804/bin/browserslist-useragent-regexp: line 3: `function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }'
Adding #!/usr/bin/env node to the top of cli.js fixes the issue
The text was updated successfully, but these errors were encountered:
I've just tried migrating to 1.1.0-beta from 1.0.2-beta and I got an error in cli script:
/Projects/my-project/node_modules/.bin/browserslist-useragent-regexp: line 3: use strict: command not found
/Projects/my-project/node_modules/.bin/browserslist-useragent-regexp: line 5: syntax error near unexpected token `ex'
/Projects/my-project/node_modules/.bin/browserslist-useragent-regexp: line 5: `function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }'
✨
CLI file starts from a newline, which appears to be invalid, since shebang is supposed to be at the very top of file:
#!/usr/bin/env node
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var argueCli = require('argue-cli');
var chalk = _interopDefault(require('chalk'));
var Table = _interopDefault(require('easy-table'));
var src = require('./');
Adding
#!/usr/bin/env node
to the top of cli.js fixes the issueThe text was updated successfully, but these errors were encountered: