-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode #264
Comments
Bump your Node dependency. You have 4.7.3, when the current version is 7.4. |
@JeffreyWay Could you share the code to update the dependency please? Can't seem to find what I'm looking for http://stackoverflow.com/questions/42068686/laravel-mix-update-a-node-dependency Edit: Installed Manually via https://nodejs.org/en/ However this actually downgraded npm from 4.4.5 to 4.1.2.. had to also install a few modules like autoprefixer |
@Mapamatician I installed NVM , followed the instructions in the usage section , and everything started working. |
For anyone having this issue with Homestead or similar environments, I was unable to get Node to upgrade using the typical instructions which are usually
That still wasn't changing the version of Node that was being used. I finally found that you have change the /usr/bin/node symlink like this:
Use whatever the highest version is in place of "<VERSION>" from your install options in /usr/local/n/versions/node. |
Thanks a lot.. Save my day |
Followed @orrd instructions and it worked. For some people, node might be located at |
I wonder why I don't have that
|
@jhourlad Because the folder should be inside |
@jhourlad Because you also need to run |
I use Bash on Windows (Ubuntu) and still got this error. Node version is 8.4. |
Thanks! It was the Symbolic Link not working for me, updated the with the version of Node running (9.4.0) and it worked! |
@orrd |
please post full command line by line. I got a lot error. |
@leegod looks like you do not even have |
Hi everyone, I have the same issue than @leegod but I had node before. What happened is that i tried to locate node with "which node" : ~$ which node Then I used this with @orrd suggestion : /.nvm/versions/node$ sudo ln -sf /.nvm/versions/node/v8.9.4/bin/node /usr/bin/node And afterwards when I try to run my work I have now : /usr/bin/env: ‘node’: No such file or directory I'm still a newbie so I don't really understand what happened but I think thatś what happened to @leegod |
@matula |
@Bromania This is exactly what I had to do to solve this as well. |
This issue happened because of your NodeJS version. My working solution (for Ubuntu):
|
@maitandat1507 your way works for me, saving my day!! |
Please Update Node Use n module from npm in order to upgrade node sudo npm cache clean -f sudo n latest |
@mingji Yours works! Thanks! |
@orrd |
Got this while trying to do a fresh install of Spark. Not sure if it's a Spark or Mix issue.
Thanks for any help!
node v4.7.3
npm 4.1.2
spark-installer 1.2.0
OSX 10.11.6
The text was updated successfully, but these errors were encountered: