diff --git a/salt/salt/nodejs.sls b/salt/salt/nodejs.sls index bc9930a..b6ab35f 100644 --- a/salt/salt/nodejs.sls +++ b/salt/salt/nodejs.sls @@ -14,9 +14,12 @@ nodejs-pkgrepo: - refresh: True # Install the npm packages defined in package.json +# Uses the --no-bin-links option to prevent npm from creating symlinks in the .bin +# directory, which doesn't work inside Vagrant on Windows install-npm-packages: - npm.bootstrap: - - name: {{ app_dir }} - - user: {{ app_username }} + cmd.run: + - name: npm install --no-bin-links + - cwd: {{ app_dir }} + - runas: {{ app_username }} - require: - pkg: nodejs diff --git a/tildes/package.json b/tildes/package.json index 88df638..84c52e7 100644 --- a/tildes/package.json +++ b/tildes/package.json @@ -5,8 +5,8 @@ "license": "AGPL-3.0-or-later", "scripts": { "lint": "npm run lint:js ; npm run lint:scss", - "lint:js": "eslint static/js/", - "lint:scss": "stylelint scss/" + "lint:js": "node node_modules/eslint/bin/eslint.js static/js/", + "lint:scss": "node node_modules/stylelint/bin/stylelint.js scss/" }, "dependencies": {}, "devDependencies": {