tup
tup copied to clipboard
Using tup to execute npm install fails
Here is my Tupfile
.
: package.json |> npm install |> node_modules
And my package.json
{
"name": "some-package",
"version": "0.0.1",
"author": "Gareth Aye [:gaye] <[email protected]>",
"devDependencies": {
"chai": "^2",
"chai-as-promised": "^5",
"mocha": "^2"
}
}
Running tup
gives
gareth@albee:~/Documents/jstup$ tup
[ tup ] [0.000s] Scanning filesystem...
[ tup ] [0.048s] Reading in new environment variables...
[ tup ] [0.048s] No Tupfiles to parse.
[ tup ] [0.048s] No files to delete.
[ tup ] [0.048s] Executing Commands...
[ ] 0%tup error: Unable to utimens() files not created by this job.
tup error: Unable to utimens() files not created by this job.
tup error: Unable to utimens() files not created by this job.
/home/gareth/Documents/jstup/node_modules/chai/.npmignore: No such file or directory
* 1) npm install
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No license field.
npm ERR! tar.unpack untar error /tmp/npm-1000/.npm/chai-as-promised/5.0.0/package.tgz
npm ERR! tar.unpack untar error /tmp/npm-1000/.npm/mocha/2.2.5/package.tgz
npm ERR! tar.unpack untar error /tmp/npm-1000/.npm/chai/2.3.0/package.tgz
npm ERR! Linux 3.16.0-33-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path /home/gareth/Documents/jstup/.tup/mnt/@tupjob-389/home/gareth/Documents/jstup/node_modules/chai-as-promised/lib
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! Error: EPERM, utime '/home/gareth/Documents/jstup/.tup/mnt/@tupjob-389/home/gareth/Documents/jstup/node_modules/chai-as-promised/lib'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM, utime '/home/gareth/Documents/jstup/.tup/mnt/@tupjob-389/home/gareth/Documents/jstup/node_modules/chai-as-promised/lib']
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! path: '/home/gareth/Documents/jstup/.tup/mnt/@tupjob-389/home/gareth/Documents/jstup/node_modules/chai-as-promised/lib',
npm ERR! fstream_finish_call: 'setupMadeDir',
npm ERR! fstream_type: 'File',
npm ERR! fstream_path: '/home/gareth/Documents/jstup/.tup/mnt/@tupjob-389/home/gareth/Documents/jstup/node_modules/chai-as-promised/lib/chai-as-promised.js',
npm ERR! fstream_class: 'FileWriter',
npm ERR! fstream_stack:
npm ERR! [ 'end (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:320:23)',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:337:20',
npm ERR! 'next (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:367:20)',
npm ERR! 'FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/gareth/Documents/jstup/.tup/mnt/@tupjob-389/home/gareth/Documents/jstup/npm-debug.log
*** tup errors ***
*** Command ID=389 failed with return value 255
tup warning: Writing to hidden file '/home/gareth/Documents/jstup/node_modules/chai/.npmignore'
tup error: Unspecified output files - A command is writing to files that you didn't specify in the Tupfile. You should add them so tup knows what to expect.
-- Unspecified output: node_modules/chai/package.json
-- Unspecified output: node_modules/chai-as-promised/package.json
-- Unspecified output: node_modules/mocha/package.json
-- Unspecified output: node_modules/chai-as-promised/README.md
-- Unspecified output: node_modules/mocha/README.md
-- Unspecified output: node_modules/chai/README.md
-- Unspecified output: node_modules/mocha/LICENSE
-- Unspecified output: node_modules/mocha/index.js
-- Unspecified output: node_modules/chai/chai.js
-- Unspecified output: node_modules/chai-as-promised/LICENSE.txt
-- Unspecified output: node_modules/mocha/mocha.js
-- Unspecified output: node_modules/chai-as-promised/lib/chai-as-promised.js
-- Unspecified output: node_modules/chai/index.js
-- Unspecified output: node_modules/chai/karma.conf.js
-- Unspecified output: node_modules/mocha/bin/options.js
-- Unspecified output: node_modules/chai/karma.sauce.js
-- Unspecified output: node_modules/chai/sauce.browsers.js
-- Unspecified output: node_modules/chai/bower.json
-- Unspecified output: node_modules/chai/CONTRIBUTING.md
-- Unspecified output: node_modules/chai/History.md
-- Unspecified output: node_modules/chai/lib/chai.js
-- Unspecified output: npm-debug.log
tup error: Expected to write to file 'node_modules' from cmd 389 but didn't
tup error: Unable to rename temporary file '.tup/tmp/4' to destination '/home/gareth/Documents/jstup/node_modules/chai/.npmignore'
*** Additionally, command 389 failed to process input dependencies. These should probably be fixed before addressing the command failure.
[ ] 100%
*** tup: 1 job failed.
tup warning: Update resulted in 1 warning
Is there a fundamental incompatibility between npm
and tup
or is there perhaps some configuration that I want?